Skip to content

sk-t3ch/AWS-Auto-Scaling-SpotFleet-Cluster-Quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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. thumbnail


tutorials/

Generic badge

Generic badge

Architecture

architecture

Example Usage

example usage

Step By Step Deployment

  1. 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
  2. Deploy Load Balancer
    • aws cloudformation create-stack --stack-name loadbalancer --template-body file://aws/01_load_balancer.yml --capabilities CAPABILITY_NAMED_IAM
  3. 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
      1. docker build -t your_repo_name .
      2. docker tag your_repo_name your_repo_name_tag
      3. docker push your_repo_name
  4. Deploy Machines
    • aws cloudformation create-stack --stack-name machines --template-body file://aws/03_machines.yml --capabilities CAPABILITY_NAMED_IAM
  5. 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.