aws-cdk-core: Tags.of().add fails with INVALID TAG
error for CfnInsightRule
resource
#20103
Labels
@aws-cdk/aws-cloudformation
Related to AWS CloudFormation
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/small
Small work item – less than a day of effort
p1
Describe the bug
I'm adding Tags to all taggable resources in my stack via
However this fails when I define
CfnInsightRule
resource in the stack.Failure in Cloudformation deployment
while the Tags were added successfully to all other resources.
The generated Cloudformation template has Insights Rule with tags (they look right and similar to the official documentation)
I tried adding the Tags manually on a InsightRule in the Console and that works.
Expected Behavior
Tags.of(stack).add(name, value)
adds the tag to all resources in the stack includingCfnInsightRule
Current Behavior
Tags.of(stack).add(name, value)
fails Cloudformation deployment onCfnInsightRule
resourceReproduction Steps
Tags.of(stack).add(name, value)
where
stack
isApp
containing at least one resource of typeCfnInsightRule
Possible Solution
I suspect
Tags.of(stack).add(name, value)
is adding the tags toCfnInsightRule
in the wrong format?As a workaround I'm excluding InsightRule resources from being tagged
Additional Information/Context
No response
CDK CLI Version
1.150.0 (build 7ca8212)
Framework Version
No response
Node.js Version
14.x
OS
Amazon Linux 2
Language
Java
Language Version
Java 11
Other information
No response
The text was updated successfully, but these errors were encountered: