cdk migrate: cdk migrate fails with "unreachable" error when template includes "AWS::RDS::DBCluster" that specifies the "ReadEndpoint" property #29293
Labels
bug
This issue is a bug.
cli
Issues related to the CDK CLI
in-progress
This issue is being actively worked on.
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
p1
package/tools
Related to AWS CDK Tools or CLI
toolkit/migrate
Related to cdk migrate
Describe the bug
When using the "cdk migrate" command to migrate an existing template that includes an "AWS::RDS::DBCluster" resource, the command fails if the resource includes the "ReadEndpoint" property. Please see the error below:
This issue also occurs when attempting to migrate an "AWS::RDS::DBSecurityGroup" resource when the "DBSecurityGroupIngress" property is specified.
Expected Behavior
We are expecting cdk migrate to support all properties for the "AWS::RDS::DBCluster" resource as this resource is supported by IaC Generator
Current Behavior
Migration command fails when the template includes an "AWS::RDS::DBCluster" that specifies the "ReadEndpoint" property. Commenting out the property results in a successful template migration.
Reproduction Steps
Step 1: Use the below template with the cdk migrate command (should result in a successful run)
Step 2: Uncomment the "ReadEndpoint" property and retry the migrate command
Possible Solution
N/a
Additional Information/Context
When creating a template for existing "AWS::RDS::DBCluster" within IaC generator, the "ReadEndpoint" property is always included in the generated template(even if empty). Thus, newly generated templates also present the "unreachable" error.
CDK CLI Version
1.128.0
Framework Version
No response
Node.js Version
v18
OS
MacOs
Language
TypeScript
Language Version
Occurs when generating templates in all languages
Other information
No response
The text was updated successfully, but these errors were encountered: