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.
Creating a Cluster
Section titled “Creating a Cluster”const cluster = yield* DBCluster("Graph", { dbSubnetGroupName: subnetGroup.dbSubnetGroupName, vpcSecurityGroupIds: [sg.groupId], enableIAMDatabaseAuthentication: true, backupRetentionPeriod: "1 day", deletionProtection: false,});Serverless
Section titled “Serverless”const cluster = yield* DBCluster("Graph", { dbSubnetGroupName: subnetGroup.dbSubnetGroupName, serverlessV2ScalingConfiguration: { minCapacity: 1, maxCapacity: 2.5, },});