fix(rds): add manageMasterUserPassword support to DatabaseInstanceFromSnapshot - #38210
Open
gingeekrishna wants to merge 6 commits into
Open
Conversation
…mSnapshot `DatabaseInstance` and `DatabaseClusterFromSnapshot` gained `manageMasterUserPassword` in aws#35734, but `DatabaseInstanceFromSnapshot` was missed. This PR adds the property to `DatabaseInstanceFromSnapshotProps` and wires it through to `CfnDBInstance`, following the same pattern as the existing implementations. An Oracle-only synth-time guard is also included because the `RestoreDBInstanceFromDBSnapshot` API only supports `ManageMasterUserPassword` for Oracle engines. Closes aws#38175
2 tasks
aws-cdk-automation
previously requested changes
Jun 27, 2026
…eMasterUserPassword Adds integration test and snapshot for Oracle DatabaseInstanceFromSnapshot with manageMasterUserPassword enabled, satisfying the PR linter requirement for fix() PRs.
aws-cdk-automation
dismissed
their stale review
June 27, 2026 16:14
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
aws-cdk-automation
temporarily deployed
to
automation
July 28, 2026 15:02 — with
GitHub Actions
Inactive
aws-cdk-automation
temporarily deployed
to
automation
July 28, 2026 15:02 — with
GitHub Actions
Inactive
gingeekrishna
temporarily deployed
to
automation
August 5, 2026 12:16 — with
GitHub Actions
Inactive
gingeekrishna
temporarily deployed
to
automation
August 5, 2026 12:16 — with
GitHub Actions
Inactive
gingeekrishna
temporarily deployed
to
automation
August 16, 2026 16:20 — with
GitHub Actions
Inactive
gingeekrishna
temporarily deployed
to
automation
August 16, 2026 16:20 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue # (if applicable)
Closes #38175.
Reason for this change
DatabaseInstanceandDatabaseClusterFromSnapshotgainedmanageMasterUserPasswordsupport in #35734, butDatabaseInstanceFromSnapshotwas missed. This property allows RDS to natively manage the master user password in AWS Secrets Manager.Description of changes
manageMasterUserPassword?: booleanproperty toDatabaseInstanceFromSnapshotPropsCfnDBInstance(setsManageMasterUserPassword,MasterUserSecretKMS key, and suppressesMasterUserPassword) following the same pattern asDatabaseInstanceandDatabaseClusterFromSnapshotRestoreDBInstanceFromDBSnapshotAPI only supportsManageMasterUserPasswordfor Oracleinstance.secret(usingSecret.fromSecretAttributesonattrMasterUserSecretSecretArn)Describe any new or updated permissions being added
N/A
Description of how you validated changes
Added unit tests; all pass (
Tests: 167 passed, 167 total).Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license