-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CfnInclude: fails to parse/load a CloudFormation template which is acceptable to CloudFormation CreateStack #29642
Comments
Looking into this a bit more, it appears that This seems to be complicated by |
Thanks @climbertjh2 for reporting this issue. I am able to reproduce this and facing the same error. |
@khushail - Thanks for looking into this. If you need someone to test out your updates, let me know. I found it a bit strange that creating a string using |
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: