(aws_apigateway): empty policy attribute for CfnRestApi fails synthesize #29175
Labels
bug
This issue is a bug.
cli
Issues related to the CDK CLI
effort/medium
Medium work item – several days of effort
p2
Describe the bug
I'm playing with
cdk migrate
and came across an IMO general CDK issue.The following CloudFormation Resource deploys just fine:
Note the empty string for the
Policy
attributeMigrated into CDK with
cdk migrate
this results in the following L1 construct:which fails synthesis with the following error:
When I remove the
policy
key completely synthesis succeedsExpected Behavior
L1 constructs should behave like CFN and therefore an empty string as policy value should succeed
Current Behavior
cdk synth fails
Reproduction Steps
try to deploy a CfnRestApi with empty string as value for
policy
attributePossible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.128.0 (build d995261)
Framework Version
No response
Node.js Version
v20.9.0
OS
macOS
Language
TypeScript
Language Version
TypeScript (~5.3.3)
Other information
No response
The text was updated successfully, but these errors were encountered: