CfnInclude: Cannot add metadata to NestedStack when including template #29853
Labels
@aws-cdk/cloudformation-include
Issues related to the "CFN include v.20" package
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
When I try to add metadata to a stack that is created with CfnInclude I get the following error:
This seems confusing as I was trying to add a different metadata key/value pair via cdk.
Expected Behavior
I expected the templates to synthesize and the nested stack to have all metadata values
Current Behavior
No template is synthesized
Reproduction Steps
The template:
The CDK app:
Possible Solution
Additional Information/Context
This only happens with nested stacks.
CDK CLI Version
2.131.0 (build 92b912d)
Framework Version
No response
Node.js Version
v20.10.0
OS
MacOs Sonoma
Language
TypeScript
Language Version
5.3.3
Other information
No response
The text was updated successfully, but these errors were encountered: