Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to just add tags to CloudFormation stack after it is created?

Is there a way to just add tags to existing CloudFormation stacks ? In update stack operation there is away to specify new tags, but is it possible to do it without update (Just like any other resources in AWS) ?

like image 471
Saurabh Deshpande Avatar asked Jan 04 '18 05:01

Saurabh Deshpande


People also ask

How do you update tags in CloudFormation?

To update a AWS CloudFormation stack (console) In the AWS CloudFormation console , from the list of stacks, select the running stack that you want to update. In the stack details pane, choose Update. If you haven't modified the stack template, select Use current template, and then choose Next.

What happens when you update a CloudFormation stack?

When you directly update a stack, you submit changes and AWS CloudFormation immediately deploys them. Use direct updates when you want to quickly deploy your updates. With change sets, you can preview the changes AWS CloudFormation will make to your stack, and then decide whether to apply those changes.


1 Answers

No, you cannot add tags to the existing CloudFormation stack without updating the stack.

When you add new Tags to CloudFormation, stack will go to UPDATE_IN_PROGRESS state and updates the wewly added tags to all the supported resources in the stack. Updating/Adding tags will not replace the resources. However, I recommend you to check the Resource Tag Properties, before Updating.

I hope this helps!

like image 74
sudheerchamarthi Avatar answered Sep 28 '22 06:09

sudheerchamarthi