DBClusterEndpoint
Source:
src/AWS/RDS/DBClusterEndpoint.ts
A custom Aurora cluster endpoint — a DNS name that routes to a chosen
subset of a cluster’s instances, on top of the built-in writer and reader
endpoints of a DBCluster.
Use it to pin analytics traffic to specific readers or to keep a stable address across instance replacements. Changing the identifier or owning cluster replaces the endpoint; type and membership update in place.
Creating Custom Endpoints
Section titled “Creating Custom Endpoints”Reader Endpoint for a Cluster
const readers = yield* DBClusterEndpoint("Readers", { dbClusterIdentifier: cluster.dbClusterIdentifier, endpointType: "READER",});Pin Specific Instances
const analytics = yield* DBClusterEndpoint("Analytics", { dbClusterIdentifier: cluster.dbClusterIdentifier, endpointType: "ANY", staticMembers: [reporting.dbInstanceIdentifier],});