We use parking lot as an analogy to introduce the concept of VPC, Subnets, Internet Gateway, and Route table
-
First, please install cdk globally
# npm install -g aws-cdk
-
Next download the code and sythesize the stack
# git clone https://github.com/syang/networking-in-plain-english & cd npm install -g aws-cdk
# cd parkinglot-n-vpc & npm install
# cdk synth
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template