Open jwoehrle opened 6 months ago
Thank you for the report. We'll bring this up to the maintainer for further investigation.
As this is a problem across our L1s and is not specific to CDK migrate, I'm un-assigning myself on this. I am curious, however, if we accept an empty string for L2s here.
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