Skip to content

Commit

Permalink
set cluster secret when using manageMasterUserPassword
Browse files Browse the repository at this point in the history
  • Loading branch information
epoctic committed Oct 17, 2024
1 parent 8125d01 commit 8c04abe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/aws-cdk-lib/aws-rds/lib/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1231,6 +1231,7 @@ export class DatabaseCluster extends DatabaseClusterNew {

this.clusterIdentifier = cluster.ref;
this.clusterResourceIdentifier = cluster.attrDbClusterResourceId;
this.secret = secretsmanager.Secret.fromSecretCompleteArn(this, 'DbClusterSecret', cluster.attrMasterUserSecretSecretArn);
}

// create a number token that represents the port of the cluster
Expand Down

0 comments on commit 8c04abe

Please sign in to comment.