Skip to main content

Vpc

Provide a Virtual Private Cloud:

Examples#

Simple Vpc#

const vpc = await provider.makeVpc({
name: "vpc",
properties: () => ({
CidrBlock: "10.1.0.0/16",
}),
});

Vpc with Tags#

const clusterName = "cluster";
const vpc = await provider.makeVpc({
name: "vpc-eks",
properties: () => ({
CidrBlock: "10.1.0.0/16",
Tags: [{ Key: `kubernetes.io/cluster/${clusterName}`, Value: "shared" }],
}),
});

Vpc with DnsHostnames and DnsSupport#

const clusterName = "cluster";
const vpc = await provider.makeVpc({
name: "vpc",
properties: () => ({
DnsHostnames: true,
DnsSupport: true,
CidrBlock: "10.1.0.0/16",
}),
});

Code Examples#

Used By#