@c3l/three-tier-vpc
v1.3.0
Published
This is a basic CDK construct spawning up a 3-tiered VPC network.
Downloads
8
Readme
C3L: Three-Tier-VPC
This is a basic CDK construct spawning up a 3-tiered VPC network.
Please refer to general C3L documentation here.
Install this package:
npm i @c3l/three-tier-vpc
The following shows a sample usage of the three-tier-vpc
. It will create a default 3 by 3 subnets VPC including independet route tables and NAT Gateways. The additional VPN ASN configuration will cause the VPC to also provision VPN Gateway and their respective routes. Subnet sizing defaults to a /20
mask.
import cdk = require('@aws-cdk/cdk');
import { ThreeTierVpc } from '../lib/three-tier-vpc';
export class TestStack extends cdk.Stack {
constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
super(scope, id, props);
new ThreeTierVpc(this, 'ThreeTierVPC', {
vpnAsn: 7224,
})
}
}