Skip to content

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.

const subnetGroup = yield* SubnetGroup("DaxSubnets", {
description: "DAX cluster subnets",
subnetIds: [subnetA.subnetId, subnetB.subnetId],
});
const cluster = yield* Cluster("Cache", {
nodeType: "dax.t3.small",
replicationFactor: 1,
iamRoleArn: role.roleArn,
subnetGroupName: subnetGroup.subnetGroupName,
});