-
-
Notifications
You must be signed in to change notification settings - Fork 9
$Tags of Type String when using New-VSStack or Update-VSStack #41
Comments
Hey @NikitaGor - Thanks for reporting the issue! Checking it out! If possible, can you send the error text you're seeing and what you did to work around it? Cheers!
|
Haha, alright, seeing the issue now. No worries on sending the error over, this should be an easy one to fix. I'm on it! |
FYI - I know your fix was to supply the expected data type for the request, but I ideally would like to keep this cleaner from a user experience perspective (and not everyone really knows how to deal with Generic Lists that uses PowerShell). Going to change the type to a hashtable so you can feed it something simple and let the function logic do the conversion. Should have a new version pushed up shortly with the fixes! |
Thanks a lot Nate! |
@NikitaGor You bet! FYI - master branch is building now in Azure Pipelines with the fix to be deployed at the end of it. Keeping this issue open until I get the all clear from you that everything is working fluidly for you. I'll respond here once it's available on the PS Gallery! Should be about 5 minutes. |
v2.6.1 is now available on the PSGallery! Update and let me know how it works for you! Usage: $tags = @{
Name = "WebServerStack"
Role = "Web"
Environment = "Production"
}
New-VSStack -Tags $tags |
Confirming everything works as expected now. Thank you very much.
|
@NikitaGor - No problem! Thank you for confirming! I did remove that piece to prevent replacing all Tags with just that one when the stack is updated without specifying new tags (i.e. because you don't need to update Tags). Good catch on the fact that it removes it when a new tag list is provided with the Stack update request. I can add it back in ASAP if it's something you leverage, otherwise I will get it sorted within the next few days! Thoughts? |
No problem from my end at all! Thank you once again. |
Cool! Going to keep this open until I close that gap. Thanks again for reporting the bug! |
All wrapped up in v2.6.2. Closing this out, thanks again, @NikitaGor ! |
Hi Nate,
when trying to supply tags to New-VSStack or Update-VSStack it fails because the expected type is string.
Was able to solve this one by changing the expected type to
[System.Collections.Generic.List[Amazon.CloudFormation.Model.Tag]]
as per
https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/CloudFormation/TCreateStackRequest.html
https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/CloudFormation/TUpdateStackRequest.html
The text was updated successfully, but these errors were encountered: