Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.06 KB

README.md

File metadata and controls

32 lines (24 loc) · 1.06 KB

Terraform module for AWS VPC

This module is used to create a VPC along with the necessary configuration to be useful. It was previously published at https://github.com/silinternational/terraform-modules/tree/main/aws/vpc.

What this does

  • Create VPC named after app_name and app_env
  • Create public and private subnets for each aws_zones specified
  • Provision a Internet Gateway and configure public subnets to route through it
  • Provision a NAT Gateway (or use an existing Transit Gateway) and configure private subnets to route through it
  • Create a DB subnet group including all private subnets
  • Optionally allocate IPv6 CIDR blocks, egress-only internet gateway, and default IPv6 routes

This module is published in Terraform Registry.

Usage Example

module "this" {
  source  = "silinternational/vpc/aws"
  version = "~> 1.0" // this may not reflect the latest version available

  app_name  = var.app_name
  aws_zones = var.aws_zones
}

provider "aws" {
  region = "us-east-1"
}