glue: CfnDatabase can't update if name is not provided #31158
Labels
@aws-cdk/aws-glue
Related to AWS Glue
bug
This issue is a bug.
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
p2
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
The text was updated successfully, but these errors were encountered: