aws-cdk-lib: Missing tags when cfn is synthesized from the app #27024
Labels
aws-cdk-lib
Related to the aws-cdk-lib package
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
When adding stack tags using
Tags.of(stackname).add("key", "value")
it works great until CDK version 2.87. However, when synthesizing the stacks using cdk versions >=2.88 (latest version 2.94 also tested and failing) the tags disappear from the stacks.Expected Behavior
Tags should apply to all child constructs once the stack is synthesized, the same way it has been doing until aws-cdk-lib version <=2.87.
Current Behavior
Tags are not generated when the stacks are built.
Reproduction Steps
I apply tags at stack entry point level through app.py, the same way showed in the documentation
Tags.of(stackname).add("key", "value")
(this has been working until v.2.87).Possible Solution
No response
Additional Information/Context
This is similar (or the same) bug that was reported in past: #26169. Apparently this was fixed in cdk v. 2.87 (it appears in its changelog) but seems broke again in versions >=2.88.
Have opened a case to aws support and they have said me to open this issue in order to be able to publicly track its fixing status.
CDK CLI Version
2.94
Framework Version
No response
Node.js Version
20.3.0
OS
Linux / macOS
Language
Python
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: