Terraform VPC -AWS - VPC

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 


We are build three tier VPC in AWS with Web, App, DB tiers Using the below resources or services.



Nategateway is for the EC2 instances in the private subnets to connect to the Internet world

Steps 

1. We created a VPC
2. Create a Public Subnets , Add one more subnet
3. Create Private Subnet
4. Creating an Internet Gateway
5. Internet Gateway , attaching Internet Gateway to a VPC
6. Create a NAT Gateway and we are going to select the Public subnet that we created (NAT Gateway must always be placed in the Public Subnet
7. Allocate an Elastic IP for your NAT Gateway.
8. Create Public Route Table , Create Routes and Associate Subnets -- A default route table will already be present . We need to create a separate route table or use the existing route table.
-- We select the VPC for which we are creating the Route Table.
9. Create Public Route after creating the Public Route Table. -- A default route is present which allows communication to the complete CIDR Block.
-- Add addtional Route here 0.0.0.0/0 entire internet. Select the option via Internet gateway
-- Now the internet route is created for the Public Route Table
10. Associate Public Subnet 1 to this Route Table










Comments

Popular posts from this blog

1. Terraform workflow using terraform commands

Terraform-Interview- QUESTIONS

Terraform Practicle Questions