AWS CLI Bug with Update-CFNStack in 4.9

I am experiencing an issue with executing an AWS CLI script via the built in step template. We are using the Update-CFNStack command to apply tags to a stack after it is created in a previous step. This command fails if a CNGDBSubnetGroup is in the CloudFormation stack with a One or more tags are not valid error.

After troubleshooting the issue, it appears to be resolved in aws-cli/1.15.4 but the version Octopus is currently including is 1.14.5.

The command full command being used is…

Update-CFNStack -StackName $stackArn -UsePreviousTemplate $true -Tags $tags -Parameters $parms -profilename $profile

…additionally if you add the tags via the template they create and if you modify via the AWS console they also create.

The AWS CLI Release notes for 1.14.67 indicate it was updated to use the lastest CloudFormation API which may account for fixing this issue.

Hi Jeff,

Thanks for reaching out and letting us know about this issue. We have created an issue that you can follow on GitHub.

Apologies for the inconvenience and we should have it updated in the not too distant future.


1 Like