null values are not allowed in templates when ResultPath=JsonPath.DISCARD #29164
Labels
@aws-cdk/aws-cloudformation
Related to AWS CloudFormation
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
I am using the Python CDK to generate a CloudFormation template in json format.
cdk deploy
of the json CloudFormation template generated using the code snippet:fails with
on aws-cdk-lib=2.70.0
Expected Behavior
Before aws-cdk-lib=2.70.0, the ResultPath in the json template looks like:
\"ResultPath\": null,
and CDK deploy succeeds.
Current Behavior
After aws-cdk-lib=2.70.0, the ResultPath in the json template looks like:
and CDK deploy fails with
'null' values are not allowed in templates
.Reproduction Steps
CDK version 2.70.0 or higher.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.70.0
Framework Version
No response
Node.js Version
18.18.2
OS
Linux
Language
Python
Language Version
3.8.17
Other information
No response
The text was updated successfully, but these errors were encountered: