Lab 13 2 Auto_Scaling and Load Balancer Lab - nicolas-tullio/Tech-Journal GitHub Wiki

Deliverables

Steps

Created VPC for Lab

image

Create Web Server AMI

Launch an Amazon Linux Instance (T2-micro)

image

image

Connect via SSH

Install httpd

image

Create an index.html file in /var/www/html. (can just be a text file with your name and SYS-360)

image

Start httpd and verify you can view page (may need to update Security Group to allow HTTP)

image

Create a Amazon Machine Image from the Instance and call it something you will remember

image

NOTE MAKE SURE AMI CREATION FINISHES

Terminate Instance

image

Create Launch Template

image

Use your AMI

image

T2-micro for Instance Type

image

Networking: You need to make sure that your VPC, subnets, and security group are all set correctly.

image

Create an Auto-Scaling Group

image

Again: Networking: You need to make sure that your VPC, subnets, and security group are all set correctly.

  • NOTE: Must select 2 subnets in same VPC, but different Zones

image

Create a New Load Balancer that uses HTTP checks and is accessible from Internet

image

image

  • Public subnets

Create a new Target Group for the Instances that will be launched

image

Group size

  • Desired # of instances of 3, minimum # of instance of 2, and maximum # of instances of 5

image

Scaling policy - use tracking and set something and change to a low value - it might allow you to see some auto-scaling

image

Add tag for "Name" (cap important) and a value that will help id your instances

image

When group is created - it should fire everything up! (Load Balancer, Instances...)

Testing

As your systems come up - check the health checks through the Target Groups

image

STUCK AT UNHEALTHY