Skip to content

AWS Autoscaling#

Creating an environment manually#

  1. SecurityGroup alb-sg

    • allow tcp/80 from 0.0.0.0/0
    • allow tcp/443 from 0.0.0.0/0
  2. SecurityGroup alb-2-app-sg

    • allow tcp/80 from self
    • allow tcp/443 from self
  3. TargetGroup

  4. LoadBalancer (pointing to TargetGroup)

  5. LaunchTemplate

  6. Autoscalinggroup

    • Add to sg alb-2-app-sg
    • register ASG with TG
    • use Default version from

Using a custom image#

  1. create separate instance
  2. connect via SSH
  3. install the nginx web server
  4. in EC2 create image
  5. modify to use new image
  6. start instance refresh

Add a database#

  1. SG app-2-db

  2. create instance

  3. copy connection information around

[aws-autoscaling.md#Using a custom image]: <#Using a custom image> "AWS Autoscaling"