CfnInclude: fails to parse/load a CloudFormation template which is acceptable to CloudFormation CreateStack #29642
Labels
@aws-cdk/cloudformation-include
Issues related to the "CFN include v.20" package
@aws-cdk/core
Related to core CDK functionality
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
CloudFormation template which specifies a string-concatenation for
AssumeRolePolicyDocument
attribute inAWS::IAM::Role
resource is NOT accepted byCfnInclude()
.cdk synth
fails with a exception:See various permutations for the
AssumeRoelPolicyDocument
attribute in theiam-role.yaml
file attached to this ticket.iam-role.yaml.txt
Expected Behavior
CfnInclude()
should accept CloudFormation YAML files that are accepted by CloudFormationCreateStack
.Current Behavior
cdk synth
fails with an exception.Reproduction Steps
Create YAML file as described.
Run
cdk synth
using a CDK application which usesCfnInclude()
to include the YAML file.Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.134.0 (build 265d769)
Framework Version
No response
Node.js Version
v20.7.0
OS
MacOS
Language
TypeScript
Language Version
TypeScript (5.1.6)
Other information
No response
The text was updated successfully, but these errors were encountered: