Skip to content

Commit e5259ee

Browse files
authored
feat(rds): Aurora clusters from snapshots (#17759)
Add `DatabaseClusterFromSnapshot` to support creating Aurora clusters from snapshots. Closes #10936. The logic is implemented similar to PR #10130 where the same feature was implemented for database clusters. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 24c6ef5 commit e5259ee

File tree

5 files changed

+370
-111
lines changed

5 files changed

+370
-111
lines changed

packages/@aws-cdk/aws-rds/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,17 @@ Read more about the [limitations of Aurora Serverless](https://docs.aws.amazon.c
572572

573573
Learn more about using Amazon Aurora Serverless by reading the [documentation](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html)
574574

575+
Use `ServerlessClusterFromSnapshot` to create a serverless cluster from a snapshot:
576+
577+
```ts
578+
declare const vpc: ec2.Vpc;
579+
new rds.ServerlessClusterFromSnapshot(this, 'Cluster', {
580+
engine: rds.DatabaseClusterEngine.AURORA_MYSQL,
581+
vpc,
582+
snapshotIdentifier: 'mySnapshot',
583+
});
584+
```
585+
575586
### Data API
576587

577588
You can access your Aurora Serverless DB cluster using the built-in Data API. The Data API doesn't require a persistent connection to the DB cluster. Instead, it provides a secure HTTP endpoint and integration with AWS SDKs.

0 commit comments

Comments
 (0)