-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
aws-rds: instance identifiers and endpoints not available on DatabaseCluster #14377
Comments
Thanks for opening the issue @vilikin. You are correct, I was able to reproduce the problem. Any chance of submitting us a PR fixing this? It should be a fairly easy change. Here's our "Contributing" guide: https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md. Thanks, |
… cluster Previously instanceIdentifiers and instanceEndpoints were readonly properties of DatabaseClusterNew, defaulting to empty arrays. However, they they were never set to the correct values after instances were added to the cluster. Those properties are now moved on to the DatabaseCluster and DatabaseClusterFromSnapshot classes where they can now actually be set to correct values. fixes aws#14377
…14394) Previously instanceIdentifiers and instanceEndpoints were readonly properties of DatabaseClusterNew, defaulting to empty arrays. However, they they were never set to the correct values after instances were added to the cluster. Those properties are now moved on to the DatabaseCluster and DatabaseClusterFromSnapshot classes where they can now actually be set to correct values. fixes #14377 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
…ws#14394) Previously instanceIdentifiers and instanceEndpoints were readonly properties of DatabaseClusterNew, defaulting to empty arrays. However, they they were never set to the correct values after instances were added to the cluster. Those properties are now moved on to the DatabaseCluster and DatabaseClusterFromSnapshot classes where they can now actually be set to correct values. fixes aws#14377 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
…ws#14394) Previously instanceIdentifiers and instanceEndpoints were readonly properties of DatabaseClusterNew, defaulting to empty arrays. However, they they were never set to the correct values after instances were added to the cluster. Those properties are now moved on to the DatabaseCluster and DatabaseClusterFromSnapshot classes where they can now actually be set to correct values. fixes aws#14377 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
DatabaseCluster should have instanceIdentifiers and instanceEndpoints props available. However, it looks like these are always empty.
From the code we can see that those are not actually set to the right values returned by the
createInstances
method:aws-cdk/packages/@aws-cdk/aws-rds/lib/cluster.ts
Line 527 in 55e737f
Reproduction Steps
Create a DatabaseCluster with at least 1 instance and try to access instanceIdentifiers or instanceEndpoints prop. Those are always empty arrays.
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: