SubnetGroup
Source:
src/AWS/DAX/SubnetGroup.ts
A DAX subnet group — the set of VPC subnets a DAX cluster’s nodes are placed into.
Subnet groups are free and provision instantly. A Cluster
references one by name via subnetGroupName. DAX does not support tags on
subnet groups.
Creating a Subnet Group
Section titled “Creating a Subnet Group”const subnetGroup = yield* SubnetGroup("DaxSubnets", { description: "DAX cluster subnets", subnetIds: [subnetA.subnetId, subnetB.subnetId],});Placing a Cluster
Section titled “Placing a Cluster”const cluster = yield* Cluster("Cache", { nodeType: "dax.t3.small", replicationFactor: 1, iamRoleArn: role.roleArn, subnetGroupName: subnetGroup.subnetGroupName,});