Cluster
Source:
src/AWS/DSQL/Cluster.ts
An Amazon Aurora DSQL cluster — a serverless, distributed SQL database with active-active high availability and Postgres wire compatibility.
Clusters are pay-per-use with no provisioned capacity, so they have
excellent test economics. Create is asynchronous (CREATING -> ACTIVE),
usually completing in under a minute; the provider waits for ACTIVE
(bounded) before returning.
Creating a Cluster
Section titled “Creating a Cluster”Basic Cluster
const cluster = yield* Cluster("AppDb", {});// connect to cluster.endpoint on port 5432 as user "admin"Cluster with Deletion Protection
const cluster = yield* Cluster("AppDb", { deletionProtectionEnabled: true,});Cluster with a Customer-Managed KMS Key
const cluster = yield* Cluster("AppDb", { kmsEncryptionKey: key.keyArn,});