This repo contains AWS cdk scripts to deploy a docker container that runs in AWS Fargate.
- Install the AWS sdk
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
- Set up your .env file with contents like this:
SERVICE_NAME=FargateService
-
Install dependencies
npm install
-
Set it up with
aws configure
- To deploy infrastructure, run
./deploy.sh