question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tags are not being propagated to cloudformation resources

See original GitHub issue

Reporting 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bblommerscommented, Jun 17, 2021

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.

0reactions
bblommerscommented, Mar 29, 2022

Going to close this - feel free to open a new issue if there is a specific service/feature that needs improvement in tag-support.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found