Reputation: 15066
I have an elastic beanstalk environment created with CloudFormation. Now I've added an additional tag and value but during the update of the stack I get:
Elastic Beanstalk environment tags cannot be updated.
Is there a way to fix this? I don't want to delete the environment and bring it back up.
Upvotes: 4
Views: 1749
Reputation: 857
According to AWS documentation for Cloudformation ElasticBeanstalk Environment, for Tags
we have the following update policy:
Update requires: You can update tags only if you update another property that requires that the environment be replaced, such as the ApplicationName property.
Which means you cannot update tags without rebuilding the environment using cloudformation.
However, you can update tags outside of cloudformation stack - Tagging Resources in Your Elastic Beanstalk Environment:
You can specify tags when you create the Elastic Beanstalk environment. In an existing environment, you can add or remove tags, and you can update the values of existing tags. In addition to the default tags, you can add up to 47 additional tags to each environment.
Be careful, as changing stack resources outside of cloudformation is not recommended and may lead to Cloudformation stack drift
Upvotes: 3