Tags are not being propagated to cloudformation resources
See original GitHub issueReporting Bugs
Per boto3 documentation if Tags
are passed when create_stack
is called, those tags must also be propagated to the resources created in that stack.
Tags (list) -- Key-value pairs to associate with this stack. AWS CloudFormation also propagates these tags to the resources created in the stack. A maximum number of 50 tags can be specified.
I do not think moto is propagating these tags to the resources created when creating the stack.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Stack-level tags aren't propagating in CloudFormation
If a stack-level tag isn't propagating for a resource that supports the Tags property, then check the cloudformation-coverage-roadmap on the ...
Read more >Cloudformation does not tag resources
All stack-level tags, including automatically created tags, are propagated to resources that CloudFormation supports. Also, I am seeing mixed behavior for ...
Read more >CloudFormation is not propagating stack-level tags for EMR
All stack-level tags, including automatically created tags, are propagated to resources that AWS CloudFormation supports.
Read more >A SAR app to propagate CloudFormation tags to ...
This app will: Propagate CloudFormation tags to CloudWatch log groups whenever you deploy a new stack or update an existing stag.
Read more >Resource tag - Amazon CloudFormation
Propagation of stack-level tags to resources, including automatically created tags, can vary by resource. For example, tags aren't propagated to Amazon EBS ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @sahilshah6196, that’s partially correct. Tags are propagated to EC2 resources, but not to any other services.
See this section of the CF logic: https://github.com/spulec/moto/blob/master/moto/cloudformation/parsing.py#L603
There’s no way around that currently, afaik. Will mark it as an enhancement to have a more centralized approach to storing tags.
Going to close this - feel free to open a new issue if there is a specific service/feature that needs improvement in tag-support.