Skip to content

Surya-bbas/AWS-3-tier-web-application-architecture-using-terraform

Repository files navigation

AWS-3-tier-web-application-architecture-using-terraform

Architecture

image

Components

User Requests:

  • Users initiate requests that are routed through Amazon Route 53, a scalable DNS web service.

  • Route 53 ensures low-latency routing to endpoints globally.

Web Servers:

  • The application runs on EC2 instances within an Auto Scaling group across multiple Availability Zones (AZs).
  • Auto Scaling dynamically adjusts capacity based on demand.

Load Balancing:

  • An Application Load Balancer (ALB) efficiently distributes incoming traffic across EC2 instances.
  • ALB enhances application availability.

Security and Traffic Routing:

  • The architecture uses a VPC with public and private subnets.
  • NAT gateways allow outbound traffic from private subnets while blocking unsolicited inbound traffic.

Database Tier:

  • Amazon RDS provides database services.
  • Master-slave replication ensures high availability and failover support.

Requirements

Name Version
aws ~> 5.0

Providers

Name Version
aws 5.47.0

Resources

Name Type
aws_eip.eip-1 resource
aws_eip.epi-2 resource
aws_internet_gateway.igw resource
aws_nat_gateway.public_nat-1 resource
aws_nat_gateway.public_nat-2 resource
aws_route_table.private_routeTable-az-1 resource
aws_route_table.private_routeTable-az-2 resource
aws_route_table.public_route_table resource
aws_route_table_association.private_subnet-1and3_association resource
aws_route_table_association.private_subnet-2and4_association resource
aws_route_table_association.public_route_table_association resource
aws_security_group.alb-igw-sg resource
aws_security_group.database-sg resource
aws_security_group.ssh-server-sg resource
aws_security_group.web_server-sg resource
aws_subnet.private_subnets resource
aws_subnet.public_subnets resource
aws_vpc.vpc resource

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages