-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RDS: Cannot connect to Serverless Cluster created from snapshot #20434
Comments
I ran this command:
|
The I think that |
But I need to start an Aurora serverless cluster from the snapshot. Furthermore, the
So according to this, I should be able to change the master password of the cluster. But according to DBCluster.MasterUserPassword, that you provide, I won't be able to change the master password. It seems there is a contradiction between documents. Anyhow, what is the best way to start an Aurora serverless cluster from snapshot in CDK? |
I've been testing this out today, and overall the credentials prop is pretty buggy and unintuitive. I can't recommend using it for any of the
I'll see what I can do about fixing this next week, the current functionality is a bit broken |
To show what I mean, If I create a new Cluster then take a snapshot of that cluster - any clusters i create from that snapshot through the |
In my case when you use |
#20504) Deprecate `credentials` and explain how it is broken. Replace it with `snapshotCredentials` that offer the expected behavior. Fixes #20434 Closes #20473 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Describe the bug
I am using
ServerlessClusterFromSnapshot
to create cluster from snapshot. for the credential, I tried bothrds.SnapshotCredentials.from_generated_secret("admin")
andrds.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 passrds.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
The text was updated successfully, but these errors were encountered: