The Problem
Create an AWS autoscaling group based on the load average of the instances (note - it is load average, not CPU utilization). Deliverable is a terraform code, which does the following:
- Create an autoscaling group in AWS with min 2 and max five instances.
- When the 5 mins load average of the machines reaches 75%, add a new instance.
- When the 5-minute load average of the machines reaches 50%, remove a machine.
- Everyday at UTC 12am, refresh all the machines in the group (remove all the old machines and add new machines).
- Sends email alerts on the scaling and refresh events.
Use any EC2 instance with Ubuntu.
Deliverables:
-
Terraform code - share the GitHub link
-
Demo Video - record a demo video and share the link (YouTube preferred) https://youtu.be/nflmvTMBcT8