Lab 13 2 Auto_Scaling and Load Balancer Lab - nicolas-tullio/Tech-Journal GitHub Wiki
Deliverables
Steps
Created VPC for Lab
Create Web Server AMI
Launch an Amazon Linux Instance (T2-micro)
Connect via SSH
Install httpd
Create an index.html file in /var/www/html. (can just be a text file with your name and SYS-360)
Start httpd and verify you can view page (may need to update Security Group to allow HTTP)
Create a Amazon Machine Image from the Instance and call it something you will remember
NOTE MAKE SURE AMI CREATION FINISHES
Terminate Instance
Create Launch Template
Use your AMI
T2-micro for Instance Type
Networking: You need to make sure that your VPC, subnets, and security group are all set correctly.
Create an Auto-Scaling Group
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
Create a New Load Balancer that uses HTTP checks and is accessible from Internet
- Public subnets
Create a new Target Group for the Instances that will be launched
Group size
- Desired # of instances of 3, minimum # of instance of 2, and maximum # of instances of 5
Scaling policy - use tracking and set something and change to a low value - it might allow you to see some auto-scaling
Add tag for "Name" (cap important) and a value that will help id your instances
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
STUCK AT UNHEALTHY