This terraform module basic network resources for a region.
module "network" {
source = "git::https://github.com/DNXLabs/terraform-aws-network.git?ref=0.0.3"
vpc_cidr = "10.1.0.0/16"
newbits = 8 # will create /24 subnets
name = "MyVPC"
multi_nat = false
}
Name | Description | Type | Default | Required |
---|---|---|---|---|
name | Name prefix for the resources of this stack | string | n/a | yes |
nat_count | Number of NAT Gateways to create (usually 1 or the number of AZs) | string | "1" |
no |
newbits | Number of bits to add to the vpc cidr when building subnets | string | "8" |
no |
private_netnum_offset | Start with this subnet for private ones, plus number of AZs | string | "10" |
no |
public_netnum_offset | Start with this subnet for public ones, plus number of AZs | string | "0" |
no |
secure_netnum_offset | Start with this subnet for secure ones, plus number of AZs | string | "20" |
no |
tags | Extra tags to attach to resources | map | <map> |
no |
vpc_cidr | Network CIDR for the VPC | string | n/a | yes |
Name | Description |
---|---|
cidr_block | CIDR for VPC created |
internet_gateway_id | ID of Internet Gateway created |
nat_gateway_ids | List of NAT Gateway IDs |
private_subnet_cidrs | List of private subnet CIDRs |
private_subnet_ids | List of private subnet IDs |
public_subnet_cidrs | List of public subnet CIDRs |
public_subnet_ids | List of public subnet IDs |
secure_subnet_cidrs | List of secure subnet CIDRs |
secure_subnet_ids | List of secure subnet IDs |
vpc_id | ID for VPC created |
Module managed by Allan Denot.
Apache 2 Licensed. See LICENSE for full details.