AWS CDK is used to spin up and take down the application's infrastructure.
This application run in a ECS Fargate Cluster.
-
Follow
sourceallies/sai-aws-auth
-
Login to AWS using the
dev
alias you setup in the previous step. After listing S3 buckets, you should see all of themdev aws s3 ls
Make sure to have setup and logged into AWS for the environment you are going to interact with:
*
→dev
*:prod
→prod
Create and destroy the application stack:
pnpm infra:up
pnpm infra:down
pnpm infra:up:prod
pnpm infra:down:prod
The stack does not deploy the application!
Build the app, and deploy it to dev:
pnpm deploy
pnpm deploy
can be ran from anywhere in the project. So you don't need to CD into.aws/
to before doing a dev deploy