Skip to content

aws-rds: Support manageMasterUserPassword for DatabaseInstanceFromSnapshot #38175

Description

@mazyu36

Describe the feature

Add manageMasterUserPassword support to DatabaseInstanceFromSnapshotProps.

Use Case

DatabaseInstance and DatabaseClusterFromSnapshot already support manageMasterUserPassword (added in #35734), but DatabaseInstanceFromSnapshot does not. Per the RestoreDBInstanceFromDBSnapshot API docs, this applies to RDS for Oracle only.

An Oracle user restoring an instance from a snapshot currently has to use the L1 escape hatch:

(instance.node.defaultChild as rds.CfnDBInstance).addPropertyOverride('ManageMasterUserPassword', true);

Proposed Solution

Add manageMasterUserPassword to DatabaseInstanceFromSnapshotProps with a synth-time validation that rejects non-Oracle engines.

Other information

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-rdsRelated to Amazon Relational Databaseeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.mixinsp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions