This module is used to create VPCs in your AWS account. It is a complete rewrite of our internal Terraform AWS VPC module. see branch (1.x).
Note on Terraforming elastic IPs outside of the module. The elastic IPs should be Terraformed before specifying the vpc module. So Terraform should be applied in two phases. one for EIPs and then the VPC module.
Checkout example.tf and test cases for how to use this module
Module managed by Comtravo.
MIT Licensed. See LICENSE for full details.
Name | Version |
---|---|
terraform | >= 0.13 |
aws | ~> 3.0 |
Name | Version |
---|---|
aws | ~> 3.0 |
null | n/a |
Name | Description | Type | Default | Required |
---|---|---|---|---|
assign_generated_ipv6_cidr_block | Create ipv6 CIDR block | bool |
true |
no |
availability_zones | List of avaliability zones | list(string) |
n/a | yes |
cidr | CIDR of the VPC | string |
n/a | yes |
depends_id | Inter module dependency id | string |
"" |
no |
enable | Enable or disable creation of resources | bool |
true |
no |
enable_dns_hostnames | Enable DNS hostmanes in VPC | bool |
true |
no |
enable_dns_support | Enable DNS support in VPC | bool |
true |
no |
external_elastic_ips | List of elastic IPs to use instead of creating within the module | list(string) |
[] |
no |
nat_gateway | NAT gateway creation behavior. If one_nat_per_availability_zone A NAT gateway is created per availability zone. |
object({ |
{ |
no |
private_subnets | Private subnet CIDR ipv4 config | object({ |
{ |
no |
public_subnets | Public subnet CIDR ipv4 config | object({ |
{ |
no |
subdomain | Public subdomain name | string |
"" |
no |
tags | Map of tags to tag all resources | map(string) |
{} |
no |
vpc_name | Name of the VPC | string |
n/a | yes |
vpc_tags | Map of tags to vpc | map(string) |
{} |
no |
Name | Description |
---|---|
depends_id | Dependency id |
elastic_ips | List of elastic ips |
nat_gateway_ids | NAT gateway ids |
net0ps_zone_id | Private hosted zone id |
private_subdomain | Private hosted zone name |
private_subnets | List of private subnets |
private_zone_id | Private hosted zone name |
public_subdomain | Public hosted zone name |
public_subdomain_zone_id | Public hosted zone id |
public_subnets | List of public subnets |
subdomain_zone_id | Public hosted zone id |
vpc_default_sg | Default security group |
vpc_id | VPC id |
vpc_private_routing_table_ids | Private routing table id |
vpc_public_routing_table_id | Public routing table id |