This is a template/boilerplate for deploying AWS infrastructure with CDK.
Bootstrap AWS CDK with the deployer AWS account:
Note: AWS account should have Administrator Access policy attached.
yarn cdk bootstrap aws://<ACCOUNT>/<REGION> \
--cloudformation-execution-policies \
arn:aws:iam::aws:policy/AdministratorAccess \
aws://<ACCOUNT>/<REGION>
# Example:
yarn cdk bootstrap aws://098162465323/sa-east-1 \
--cloudformation-execution-policies \
arn:aws:iam::aws:policy/AdministratorAccess \
aws://098162465323/sa-east-1
Infrastructure definition is located in infra/src/app/cdk-stack.ts
.
Main entrypoint for infrastructure stacks is defined at infra/src/main.ts
.
Deploy & update existing infrastructure:
yarn deploy
Destroy existing infrastructure:
yarn drop