E-C-2 Auto-Scale in AWS for High Availability!

William Jackson
4 min readAug 2, 2022

--

As a business owner, the path to profitability is to find ways to control your overhead and this is what is called “Controllable Expenses”. What are controllable expenses? Controllable expenses would be your operating costs and payroll expenses. During my 20 years of working in retail, I’ve learned to understand the phrase “sales cures all”. It means that the more sales you have, the less you have to worry about operating cost, but in doing this you are diminishing your bottomline and your company will not be as profitable. AWS allows you to do this with your application by creating Auto Scaling EC2 Instances. The EC2s will adjust to the needs of your business, keeping you from spending unnecessary funds on unused infrastructure or not having enough infrastructure for the needs of your business.

AWS Auto Scaling monitors your applications and automatically adjusts capacity to maintain steady, predictable performance at the lowest possible cost. Using AWS Auto Scaling, it’s easy to setup application scaling for multiple resources across multiple services in minutes… — https://aws.amazon.com/autoscaling

If you love to make or save money, continue to read this article as we discuss everything tech and Level Up!

In my previous articles I talked about automating your AWS services to be more efficient. Creating auto scaling EC2s is simple….. well maybe lol. There are so many ways to set up an auto scaling group and for this project we are going to use the AWS console, let's dive in!

Step 1. Create a VPC with cidr 10.10.0.0/16

Step 2. Create three public subnets with 10.10.1.0/24 & 10.10.2.0/24 & 10.10.3.0/24

Step 3. Create an EC2 Launch Template

Step 4. Create an autoscaling group using t2.micro instances

Step 5. Create an Application Load Balancer to distribute traffic to the autoscaling group.

Step 6. Create web server security group that allows inbound traffic from HTTP from your Application Load Balancer.

Step 7. Create a load balancer security group that allows inbound traffic from HTTP from 0.0.0.0/0.

Step 8. All instances should have apache installed on each instance with the ability to check any random IP address and be able to produce a test page.

Let’s Level Up In Tech!

--

--

William Jackson

DevOps/Cloud | AWS Certified | Azure DevOps | Docker | Python | Linux