Skip to content

Rahul2929/vpc_infra_terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repo helps to build vpc infrastructure in AWS with the help of terraform modules.

DESCRIPTION

	Repo helps in building below AWS services
	----------------------------------------- 

-> Spin up a VPC in ap-south-1a AZ, can be modified at runtime.

-> Create's 2 subnet one public one private in dividing vpc into two equal halfs.

-> Create IGw which is associated with public subnet

-> Create 2 EC2 instance ( frontend & backend ), frontend being in Public whereas backend being in Private subnet.

-> Create 2 SecurityGroup one for each frontend and backend ec2 instance

PREREQUISITE

-> AWS account

-> ACCESS KEY & SECRET KEY for your account present in credentials file inside your $HOME/.aws directory.

RUN

-> Set $TF_VAR_subnet_cidr value as a list.

EXAMPLE: export $TF_VAR_subnet_cidr = '["192.168.0.0/25", "192.168.0.128/25"]'

-> Navigate to test folder and run below command

RUN "terraform init"

RUN "terraform apply"

Releases

No releases published

Packages

No packages published

Languages