Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 537 Bytes

File metadata and controls

23 lines (17 loc) · 537 Bytes

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" }
  }
}