This is a CDK project including following components:
- VPC Creation
- ECS cluster Fargate type
CDK_VERSION=v1.66.0
npm install -g aws-cdk@${CDK_VERSION}
cdk --version
python3 -m venv env
source env/bin/activate
pip install --upgrade -r requirements.txt
$ cdk deploy
or with custom environment:
$ cdk deploy -c domain_name=mydomain -c env=prd
or every stack seperately:
$ cdk deploy vpc-stack
cdk boostrap
cdk bootstrap is a tool in the AWS CDK command-line interface responsible for populating a given environment with resources required by the CDK to perform deployments into that environment.cdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template