Describe the feature
RDS.DatabaseSecret construct should support setting a custom dbname in the secret that gets created in Secrets Manager.
Use Case
When pulling the database-related secret from Secrets Manager, we use all of its values (username, password, database name, etc.) when creating a connection to an RDS database. However, the database name is whatever the default DB was at the time of the RDS cluster's creation, so in many cases, this means that the code pulling the secret can end up connecting to the wrong database.
Proposed Solution
Add a variable to RDS.DatabaseSecret - PR coming soon.
Other Information
No response
Acknowledgements
CDK version used
2.67
Environment details (OS name and version, etc.)
MacOS
Describe the feature
RDS.DatabaseSecret construct should support setting a custom
dbnamein the secret that gets created in Secrets Manager.Use Case
When pulling the database-related secret from Secrets Manager, we use all of its values (username, password, database name, etc.) when creating a connection to an RDS database. However, the database name is whatever the default DB was at the time of the RDS cluster's creation, so in many cases, this means that the code pulling the secret can end up connecting to the wrong database.
Proposed Solution
Add a variable to RDS.DatabaseSecret - PR coming soon.
Other Information
No response
Acknowledgements
CDK version used
2.67
Environment details (OS name and version, etc.)
MacOS