T3chFlicks: AWS Auto Scaling Spot Fleet Cluster Quickstart
Quickstart for running an example dockerised Python web server on AWS with an autoscaling group spot instances.
- Deploy VPC
aws cloudformation create-stack --stack-name vpc --template-body file://aws/00_vpc.yml --capabilities CAPABILITY_NAMED_IAM
- tutorial for VPC can be found here
- Deploy Load Balancer
aws cloudformation create-stack --stack-name loadbalancer --template-body file://aws/01_load_balancer.yml --capabilities CAPABILITY_NAMED_IAM
- Deploy Cluster
aws cloudformation create-stack --stack-name cluster --template-body file://aws/02_cluster.yml --capabilities CAPABILITY_NAMED_IAM
- Upload Docker image of Web Sever to ECR
docker build -t your_repo_name .
docker tag your_repo_name your_repo_name_tag
docker push your_repo_name
- Deploy Machines
aws cloudformation create-stack --stack-name machines --template-body file://aws/03_machines.yml --capabilities CAPABILITY_NAMED_IAM
- Deploy Service
- Update template with your Docker image
aws cloudformation create-stack --stack-name service --template-body file://aws/04_service.yml --capabilities CAPABILITY_NAMED_IAM
This project was created by T3chFlicks - A tech focused education and services company.