Skip to content

A Terraform module to create a customizable AWS Virtual Private Cloud (VPC) with public and private subnets, route tables, and internet gateway support.

License

Notifications You must be signed in to change notification settings

iamshoaibxyz/terraform-aws-iamshoaibxyz-test-vpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VPC Terraform Module

This module provisions a basic VPC with public and private subnets in AWS.

Usage

To use this module, specify the VPC configuration and subnet configuration in your root module.

module "vpc" {
  source = "./terraform-aws-iamshoaibxyz-test-vpc"
  
  vpc_config = {
    cidr = "10.0.0.0/16"
    name = "my-vpc"
  }
  
  subnet_config = {
    "public" = { az = "ap-southeast-1a", cidr_block = "10.0.0.0/24", public = true }
    "private" = { az = "ap-southeast-1b", cidr_block = "10.0.1.0/24" }
  }
}

About

A Terraform module to create a customizable AWS Virtual Private Cloud (VPC) with public and private subnets, route tables, and internet gateway support.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages