Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 986 Bytes

README.md

File metadata and controls

42 lines (27 loc) · 986 Bytes

AWS Infrastructure

AWS CDK is used to spin up and take down the application's infrastructure.

This application run in a ECS Fargate Cluster.

Setup

  1. Follow sourceallies/sai-aws-auth

  2. Login to AWS using the dev alias you setup in the previous step. After listing S3 buckets, you should see all of them

    dev
    aws s3 ls

Scripts

Make sure to have setup and logged into AWS for the environment you are going to interact with:

  • *dev
  • *:prodprod

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