From 2c714058f8db0a97ca44b09b5cba8a4cd7cb80f7 Mon Sep 17 00:00:00 2001 From: Kazuho CryerShinozuka Date: Sat, 23 Nov 2024 13:57:19 +0900 Subject: [PATCH] update readme --- packages/aws-cdk-lib/aws-rds/README.md | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/packages/aws-cdk-lib/aws-rds/README.md b/packages/aws-cdk-lib/aws-rds/README.md index 1e5431e65db57..bb5bcd26646ef 100644 --- a/packages/aws-cdk-lib/aws-rds/README.md +++ b/packages/aws-cdk-lib/aws-rds/README.md @@ -1417,3 +1417,31 @@ new rds.DatabaseCluster(this, 'Cluster', { monitoringRole, }); ``` + +## Limitless Database Cluster + +Amazon Aurora [PostgreSQL Limitless Database](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/limitless.html) provides automated horizontal scaling to process millions of write transactions per second and manages petabytes of data while maintaining the simplicity of operating inside a single database. + +The following example shows creating an Aurora PostgreSQL Limitless Database cluster: + +```ts +declare const vpc: ec2.IVpc; + +new DatabaseCluster(this, 'LimitlessDatabaseCluster', { + engine: DatabaseClusterEngine.auroraPostgres({ + version: AuroraPostgresEngineVersion.VER_16_4_LIMITLESS, + }), + vpc, + clusterScailabilityType: ClusterScailabilityType.LIMITLESS, + // Requires enabling Performance Insights + enablePerformanceInsights: true, + performanceInsightRetention: PerformanceInsightRetention.MONTHS_1, + // Requires enabling Enhanced Monitoring at the cluster level + monitoringInterval: cdk.Duration.minutes(1), + enableClusterLevelEnhancedMonitoring: true, + // Requires I/O optimized storage type + storageType: DBClusterStorageType.AURORA_IOPT1, + // Requires exporting the PostgreSQL log to Amazon CloudWatch Logs. + cloudwatchLogsExports: ['postgresql'], +}); +```