Skip to content

AWS VPC module to create a basic VPCs with 1 public subnet per AZ in AWS.

Notifications You must be signed in to change notification settings

gbergeret/tf-vpc-module

Repository files navigation

VPC Module

AWS VPC module to create a basic VPCs with 1 public subnet per AZ in AWS.

This module can run in money saving mode so you don't spend crazy amount while running tests. You simply need to use the variable price_saving_enabled.

How To Use

Variables

  • name_prefix: String (optional, default: tf-)
  • cidr_block: String needs to be at least /23 (optional, default: 172.31.0.0/16)
  • price_saving_enabled: Bool used to reduce cost by using EC2 instances as NAT gateway instead of AWS NAT Gateway (optional, default: false)

Outputs

  • vpc_id: String
  • default_security_group: String
  • subnets: Map[List]: list of subnet ids per tier (public, private)
  • cidr_blocks: Map[List]: list of CIDR blocks per tier (vpc, public, private)

Example

module "vpc" {
  source = "github.com/gbergere/tf-vpc-module"
}

Used by

About

AWS VPC module to create a basic VPCs with 1 public subnet per AZ in AWS.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published