Why aren’t my stack-level tags propagating to resources in my CloudFormation stack?

2 minute read
1

My stack-level tags aren't propagating to resources in my AWS CloudFormation stack.

Short description

Propagation of stack-level tags to resources can vary by resource. CloudFormation supports propagation of stack-level tags only for resources with the Tags property. For a list of AWS resources and their property types, see AWS resource and property types reference.

The following examples demonstrate the difference in stack-level tag propagation between a resource that supports the Tags property, and one that doesn't.

Resolution

Resource that supports the Tags property

The resourceAWS::S3::Bucket supports the Tags property.

Create a stack with the AWS::S3::Bucket resource and specify stack-level tags.

After the stack is created, the S3 bucket resource has the propagated stack-level tags with the aws: prefix.

Resource that doesn't support the Tags property

Although the PutRule API allows you to specify tags, the AWS::Events::Rule resource doesn't support the Tags property.

Create a stack with the AWS::Events::Rule resource and specify stack-level tags.

After the stack is created, the Events Rule resource doesn't have the propagated stack-level tags.

Search for or create an issue through GitHub

If a stack-level tag isn't propagating for a resource that supports the Tags property, then check the cloudformation-coverage-roadmap on the GitHub website to see if it's a known issue. If it isn't submitted as an issue, then choose New issue to create one.


AWS OFFICIAL
AWS OFFICIALUpdated 2 years ago