I used this to deploy a dockerized NodeJS Server with WebSocket on AWS with monitoring using CloudWatch Dashboard.
- Elastic Compute Service
- Fargate
- Web Application Firewall
- Virtual Private Cloud
- Application Load Balancer
- Application Auto Scaling
- CloudWatch
- Copy scripts
cp template-cloud-deploy.sh cloud-deploy.sh
cp template-publish.sh publish.sh
cp template-cf.yaml cf.yaml
cp template-loadtest.sh loadtest.sh
- Create image repo on ECR.
- Replace placeholders on
publish.sh
,cf.yaml
,cloud-deploy.sh
, and oncf.yaml
. - Run
sh ./publish.sh
. - Run
sh ./cloud-deploy.sh
After the first deployment, uncomment the final lines in publish.sh
to automatically redeploy ECS Service.
- Replace placeholders on
loadtest.sh
. - Run
sh ./loadtest.sh