UNPKG

@stacksjs/cloud

Version:

The Stacks cloud/serverless integration & implementation.

29 lines (27 loc) 785 B
import type { Construct } from 'constructs'; import type { NestedCloudProps } from '../types'; export declare interface NetworkStackProps extends NestedCloudProps { } export declare class NetworkStack { vpc: ec2.Vpc constructor(scope: Construct, props: NetworkStackProps) { this.vpc = new ec2.Vpc(scope, 'Network', { vpcName: `${props.slug}-${props.appEnv}-vpc`, ipAddresses: ec2.IpAddresses.cidr('10.0.0.0/16'), maxAzs: 3, natGateways: 0, subnetConfiguration: [ { name: 'public-subnet-1', subnetType: ec2.SubnetType.PUBLIC, cidrMask: 24, }, { name: 'private-subnet-1', subnetType: ec2.SubnetType.PRIVATE_ISOLATED, cidrMask: 28, }, ], }) } }