Open grzegorzewald opened 3 months ago
This seems to be a CFN bug to me as the Name is not required.
I will report to the internal team for verifying.
Exactly @pahud, name is not required, but feels to be required on update for reason...
internal tracking: V1491264517
Describe the bug
When once Cretes instance of
CfnDatabase
without name property set, it has name generated automatically based on construct ID. This is expected behaviour. But when construct is updated, CloudFormation errors with "no name provided error"Regression Issue
Last Known Working CDK Version
2.152
Expected Behavior
When
CfnDatabase
is updated without name property set up, it would use previously generated database nameCurrent Behavior
When
CfnDatabase
is updated without name property set up it errors with: Database name cannot be equal to null or empty (Service: AWSGlue; Status Code: 400; Error Code: InvalidInputException; Request ID:00000000-0000-4000-0000-000000000000; Proxy: null)Reproduction Steps
Create Database construct:
deploy, update code to:
and deploy once again
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.152.0 (build faa7d79)
Framework Version
No response
Node.js Version
v18.12.1
OS
MacOs 14.6
Language
TypeScript
Language Version
No response
Other information
No response