-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3-tier-arch-description
14 lines (12 loc) · 1.11 KB
/
3-tier-arch-description
1
2
3
4
5
6
7
8
9
10
11
12
https://imanishchaudhary.medium.com/3-tier-architecture-on-aws-using-terraform-304ff0810283
VPC with CIDR 10.0.0.0/16 and Name=3-tier
created 2 public subnets with CIDR 10.0.1.0/24 (public-subnet-1) and 10.0.2.0/24(public_subnet_2), and 2 private subnet with CIDR 10.0.3.0/24(private_subnet_1) and 10.0.4.0/24(private_subnet_2) .
created an Internet Gateway and provided VPC id .
Associating our public subnets to route table so that our resources inside our public subnet can communicate with the internet.
Creating Security group for our instances allowing http inbound.Security Group to allow Traffic on Port 80.
Fetching the EC2 AMI details from AWS using Data Source.Create EC2 instance in Public Subnets.
Configuring Security group for our database instance.Configure a security group to all inbound traffic from our application load balancers.
Created ALB and Launching it in Public Subnets.Configuring our ALB a target group that maps to our EC2 Instances.
Adding HTTP Listener on Port 80.
Creating RDS db Instances in Private Subnets.
Configured a security group for the RDS instance to allow access through specified ports .