Skip to content

DBCluster

Source: src/AWS/Neptune/DBCluster.ts

An Amazon Neptune graph database cluster.

DBCluster owns the writer and reader endpoints and cluster-wide networking; compute is added via DBInstance. Neptune serves Gremlin, openCypher, and SPARQL over the cluster endpoint (default port 8182) and is reachable only from inside the VPC. Provisioning a cluster plus its first instance takes ~10 minutes.

Mutable fields are reconciled in place against the observed cloud state; immutable fields (engine, dbSubnetGroupName, storageEncrypted, kmsKeyId, globalClusterIdentifier, availabilityZones) force a replacement.

const cluster = yield* DBCluster("Graph", {
dbSubnetGroupName: subnetGroup.dbSubnetGroupName,
vpcSecurityGroupIds: [sg.groupId],
enableIAMDatabaseAuthentication: true,
backupRetentionPeriod: "1 day",
deletionProtection: false,
});
const cluster = yield* DBCluster("Graph", {
dbSubnetGroupName: subnetGroup.dbSubnetGroupName,
serverlessV2ScalingConfiguration: {
minCapacity: 1,
maxCapacity: 2.5,
},
});