This module provides a set of resources to create a VPC on AWS.
pnpm install @ttoss/cloud-vpc
import { createVpcTemplate } from '@ttoss/cloud-vpc';
const cidrBlock = '10.0.0.0/16';
const template = createVpcTemplate({
cidrBlock,
});
export default template;
Creates a VPC template.
-
cidrBlock: string
- The CIDR block of the VPC. -
createPublicSubnets: boolean
- Whether to create public subnets. Default istrue
.