Skip to content

RDS: Cannot connect to Serverless Cluster created from snapshot #20434

@mostafafarzaneh

Description

@mostafafarzaneh

Describe the bug

I am using ServerlessClusterFromSnapshot to create cluster from snapshot. for the credential, I tried both rds.SnapshotCredentials.from_generated_secret("admin") and rds.SnapshotCredentials.from_generated_password("admin") . (I do not know the difference between these two methods!)

It creates the cluster successfully but I cannot connect to it with the generated secret in the secret manager. I tried query the database with secret ARN, but no luck.
The snapshot was taken from a database with the same "admin" username.

Expected Behavior

I should be able to create a serverless cluster from the snapshot and connect to it with the newly generated secret.

Current Behavior

It won't let me connect to the database with generated secret

Reproduction Steps

Take a snapshot from a serverless cluster. Then use the ServerlessClusterFromSnapshot method and pass rds.SnapshotCredentials.from_generated_secret("admin") as credential to it.

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.13.0

Framework Version

No response

Node.js Version

16.15.0

OS

Debian 10

Language

Python

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-rdsRelated to Amazon Relational DatabasebugThis issue is a bug.effort/mediumMedium work item – several days of effortp1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions