Project : Simple E-Commerce web site Tec Stack: AWS Cloud, Ansible I have created a simple web site to practice AWS cloud and Ansible, All Cloud Infrastructure is created using Console and then configured and installed Apache Web server, copied web site files on them using Ansible. Default VPC created in ap-south-1 with 3 Subnet created in different Availability zone (ap-south-1a, ap-south-1b and ap-south-1c) to increases fault tolerance; if one AZ experiences an issue, the Applicatoin load balancer can redirect traffic to healthy instances in another zone. Following are the AWS Infrastructure build to host this webstie:
-
VPC (Virtual Private Cloud): The fundamental isolated network for your AWS account, residing in a single region. I have created one in ap-south-1 region. with three subnets, route table, Internet Gateway.

-
Application Load Balancer: An AWS Application Load Balancer (ALB) is a fully managed service that intelligently distributes incoming HTTP/HTTPS traffic across multiple targets (like EC2 instances, containers) based on advanced rules, handling Layer 7 (application) traffic for microservices, containerized apps, and modern web applications, providing high availability, scaling, and features like path-based routing, host-based routing, and SSL termination. I have created Internet-facing ALB to distributes traffic across multiple Availability Zones, increasing application resilience, which listens on port 80 and forwared traffic to EC2 target group, which has attached security gorup which allows HTTP and SSH traffic.

3.EC2 Launch Template: An Amazon EC2 Launch Template is a resource that stores the configuration details for launching EC2 instances. It acts as a blueprint, simplifying the process of repeatedly launching instances with consistent settings.
I have creatd one EC2 Launch Template to create Instances using ASG.
4.ASG (Auto Scaling Group): ASG automatically adjusts the number of EC2 instances to match demand, ensuring application availability and cost efficiency by scaling out (adding instances) or scaling in (removing instances) based on policies, health checks, and predefined metrics like CPU, using launch templates for configuration.
I have created ASG with Desired capacity 3 , minimum 1 and max 6 instances to server my web site, which is integrated with ALB Target Group.

- EC2 Security Groups: An AWS EC2 security group acts as a virtual firewall for your EC2 instances within a Virtual Private Cloud (VPC), controlling both inbound (incoming) and outbound (outgoing) network traffic. I have created EC2 Security Group which SSH and HTTP Traffic to EC2 instances.
Diagrams:


