Skip to content

DBSubnetGroup

Source: src/AWS/DocDB/DBSubnetGroup.ts

An Amazon DocumentDB subnet group — the set of VPC subnets a DocumentDB cluster and its instances are placed into. DocumentDB is VPC-only, so a subnet group spanning at least two Availability Zones is required before a cluster can be created.

const subnetGroup = yield* DBSubnetGroup("DocDbSubnets", {
subnetIds: [subnetA.subnetId, subnetB.subnetId],
});