Skip to content

Commit

Permalink
add sources for RDS and Secrets Manager integrations
Browse files Browse the repository at this point in the history
Co-authored-by: Luca Pizzini <lpizzini7@gmail.com>
  • Loading branch information
epoctic and lpizzinidev authored Aug 1, 2024
1 parent e00c04e commit 0bd1d1d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/aws-cdk-lib/aws-rds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ const cluster = new rds.DatabaseCluster(this, 'Database', {
});
```

The manageMasterUserPassword prop supports a custom username OR custom username with customer supplied AWS KMS key.
These values are passed in using the existing `credentials` property with only the `username` and `encryptionKey` props supported.
Note: `encryptionKey` cannot be set without `username` being set as well.
The `manageMasterUserPassword` property supports a custom username or a custom username with a customer supplied AWS KMS key.

You can specify the `username` and the `encryptionKey` via the `credentials` property.

**Note:** `username` must be specified if `encryptionKey` is set.

```ts
declare const vpc: ec2.Vpc;
Expand All @@ -92,6 +94,8 @@ const cluster = new rds.DatabaseCluster(this, 'Database', {
});
```

> Visit [Password management with Amazon RDS and AWS Secrets Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) or [Password management with Amazon Aurora and AWS Secrets Manager](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html) for more details.
Your cluster will be empty by default. To add a default database upon construction, specify the
`defaultDatabaseName` attribute.

Expand Down

0 comments on commit 0bd1d1d

Please sign in to comment.