$ npm install -g aws-cdk $ mkdir hello-cdk $ cd hello-cdk $ cdk init app --language=typescript $ touch lib/hello-cdk-base.ts $ npm install --save @aws-cdk/aws-ec2 { "app": "node bin/hello-cdk.js" } this.getContext('cidr_by_env')[`${env}`] this.getContext('max_azs')[`${env}`] cdk -c VAR=value cdk -c VAR1=value1 -c VAR2=value2 $ mkdir -p "./cft/qa" $ cdk synth -c ENV=qa "HelloCdkBase-qa" >./cft/qa/vpc.yml $ npm run build $ cdk deploy -c ENV=qa $ cdk destroy -c ENV=qa