Skip to content

anupjamgade/terraform-aws-anup-test-vpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#terraform-aws-vpc

##Overview This Terraform module creates an AWS VPC with a given CIDR block. It also creates multiple subnets (public and private), and for public subnets, it sets up an Internet Gateway (IGW) and appropriate route tables.

##Features Creates a VPC with a specified CIDR block Creates public and private subnets Creates an Internet Gateway (IGW) for public subnets Sets up route tables for public subnets

###Usage

''' provider "aws" { region = "us-east-1" } module "vpc" { source = "./module/vpc"

vpc_config = { cidr_block = "10.0.0.0/16" name = "your_vpc_name" }

subnet_config = { #key{cidr.az} public_subnet = { cidr_block = "10.0.0.0/24" az = "us-east-1a" public = true } private_subnet = { cidr_block = "10.0.1.0/24" az = "us-east-1b" } } } '''

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages