Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add to or change a stack's tags?

I have an existing AWS CloudFormation stack, and I would like to add an additional tag to the stack. I went through the "Update Stack" UI steps, but didn't see anything that allows me to update the tag.

Is it possible to add a tag to an existing tag, and if so, how?

like image 985
neverendingqs Avatar asked Sep 05 '25 17:09

neverendingqs


1 Answers

You can update the tags on an existing stack by running update-stack for the aws cli:

$ aws cloudformation update-stack --stack-name myStack --template-body file://myCloudformationTemplate.yaml --tags='[{"Key": "Author","Value": "Me"}, {"Key": "Project", "Value": "Foo"}]'
like image 193
Jon Medwig Avatar answered Sep 07 '25 19:09

Jon Medwig