aws_glue.CfnConnection: JDBC Connection does not work without optional availability_zone
param
#32959
Labels
@aws-cdk/aws-cloudformation
Related to AWS CloudFormation
@aws-cdk/aws-glue
Related to AWS Glue
bug
This issue is a bug.
p2
Describe the bug
The
availability_zone
param is optional foraws_glue.CfnConnection.PhysicalConnectionRequirementsProperty
. A Connection resource is successfully created without it. However, "Test Connection" in the AWS Console fails with a cryptic error:InvalidInputException: Unable to resolve any valid connection
I noticed the Connection would work if I saved it in the AWS Console without changes. There is no field for Availability Zone in the UI, but the parameter is present in the network request when a Connection is saved. Inspecting that network request was the only way I was able to narrow down the problem. "Test Connection" worked after I added this optional param in CDK.
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
I would expect failure to create the resource if it's not valid, or the value to be set on behalf of the user as it is in the AWS console, or a more actionable error message in the AWS Console.
Current Behavior
A nonfunctional resource is created without an obvious path to troubleshoot.
Reproduction Steps
Possible Solution
availability_zone
required, orAdditional Information/Context
No response
CDK CLI Version
2.149.0 (build c8e5924)
Framework Version
No response
Node.js Version
18.15.0
OS
macOS
Language
Python
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: