Closed sfosterDunelm closed 1 year ago
Yes I can confirm this error exists back in 2.88
probably related to:
aws-cdk-lib: use new L1 codegen (https://github.com/aws/aws-cdk/issues/26318) (f15ed23) cfnspec: cloudformation spec v130.0.0 (https://github.com/aws/aws-cdk/issues/26278) (d316af7) cfnspec: cloudformation spec v130.1.0 (https://github.com/aws/aws-cdk/issues/26362) (52e20c9)
I can reproduce this on Python as well, thanks for reporting
A workaround using Raw overrides:
writeFunction.AddPropertyOverride($"Events.{sqsEventSourceName}.Properties.Queue", queue.QueueArn)
writeFunction.AddPropertyOverride($"Events.{sqsEventSourceName}.Properties.BatchSize", 1000)
This has been fixed by #26679 and https://github.com/cdklabs/awscdk-service-spec/pull/459
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
Upgrading from v2.87.0 to v2.89.0 causes the events properties for a CfnFunction to no longer be generated:
Expected Behavior
It should generate this template.json
Current Behavior
But it generates this template.json missing the data in MyAPI.Events.GetResource.Properties:
Reproduction Steps
Creating this same stack that worked in 2.87.0 has issues in 2.89.0
Possible Solution
This won't deploy to AWS as the template.json isn't valid any more
Additional Information/Context
No response
CDK CLI Version
2.89.0
Framework Version
No response
Node.js Version
18.16.1
OS
macOS Ventura 13.5
Language
Typescript
Language Version
Typescript (4.7.4)
Other information
No response