AWS: Highly available infrastructure using ASG and ELB
Building a Highly Available Environment on AWS using Auto Scaling Group and Load Balancer 1. Introduction Highly available infrastructure ensures that applications remain accessible even if one or more servers fail. In AWS, this can be achieved by combining: - EC2 Instances - Auto Scaling Group (ASG) - Elastic Load Balancer (ELB) - Health Checks This architecture automatically replaces unhealthy instances and distributes traffic across multiple servers. --- 2. Prerequisites Before starting the setup, ensure the following components are available. 2.1 AWS Account You must have access to the AWS Management Console. 2.2 VPC Setup A Virtual Private Cloud with: - At least two public subnets - Subnets in different Availability Zones Example: VPC ├── Subnet-A (Availability Zone 1) └── Subnet-B (Availability Zone 2) 2.3 Security Group Allow the following ports: HTTP (80) HTTPS (443) SSH (22) --- 3. Launch Base EC2 Instance First create a base EC2 instance which will la...