doc: https://dev.to/emmanuelnk/part-3-simple-ec2-instance-awesome-aws-cdk-37ia How to install docker on Amazon Linux 2: https://www.cyberciti.biz/faq/how-to-install-docker-on-amazon-linux-2/ How to deploy nginx and open port 80: https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-docker/
This is a blank project for CDK development with TypeScript.
The cdk.json
file tells the CDK Toolkit how to execute your app.
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