Posts

Showing posts from March, 2023

Terraform : Create a VPC, IG, SUBNETS , NAT, ROUTE TABLES

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++   Main.tf or vpc.tf     resource "aws_vpc" "my-vpc-superkite" {   cidr_block       = " ${ var . cidr_block } "   # default uses the same hardware as other aws customer   instance_tenancy = " ${ var . instance_tenancy } "     /*   -- enable_dns_hostnames = true   When this setting is enabled, Amazon Route 53 will automatically   create DNS records for the instances in the VPC, allowing them to   be addressed by their hostname. This can be useful for services that   need to be accessed by their hostname instead of their IP address,   or for cases where the IP addresses of the instances may change freq  uently. */   enable_dns_hostnames = true   /*   @color red   -- enable_dns_support   = true @color   W...

Terraform VPC - on AWS : Three tier architecture design

Image
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ We are going to build a three tier architecture as follows.   AWS Management Console : First Build manually  We are going to build a VPC \ We are going to create public and private subnets under two different available zone . Two more private subnets for database. In addition to that we are going to create an InternetGateway.  And add the routes for the public subnets where by incoming traffics are also allowed by this public subnets. In addition to that we will create NAT Gateway with elastic IPs. Therefore the EC2 instances in the private subnet can communicate to the internet world using the NAT gateway created on the Public subnets.  Above diagram represents what we are planning to build. We will learn about Terraform Modules and Local Values.    43 . Building VPC Manually using AWS Console. http...