Creates a VPC and at least 1 public and 1 private subnet inc. IGW, NAT and required route tables
No requirements.
Name |
Version |
aws |
n/a |
template |
n/a |
Name |
Description |
Type |
Default |
Required |
env |
The environment |
string |
"dev" |
no |
name |
The name of this project |
string |
n/a |
yes |
private_subnets |
A list of private subnets to create |
list(object({ cidr_block = string availability_zone = string })) |
n/a |
yes |
public_subnets |
A list of public subnets to create |
list(object({ cidr_block = string availability_zone = string })) |
n/a |
yes |
vpc_cidr |
The CIDR range for your VPC |
string |
n/a |
yes |
Name |
Description |
private_subnets |
n/a |
public_subnets |
n/a |
vpc_id |
n/a |
Philips-MBP-2:vpc philipnichol$ terraform-docs markdown . --sort-by-required
No requirements.
Name |
Version |
aws |
n/a |
template |
n/a |
Name |
Description |
Type |
Default |
Required |
name |
The name of this project |
string |
n/a |
yes |
private_subnets |
A list of private subnets to create |
list(object({ cidr_block = string availability_zone = string })) |
n/a |
yes |
public_subnets |
A list of public subnets to create |
list(object({ cidr_block = string availability_zone = string })) |
n/a |
yes |
vpc_cidr |
The CIDR range for your VPC |
string |
n/a |
yes |
env |
The environment |
string |
"dev" |
no |
Name |
Description |
private_subnets |
n/a |
public_subnets |
n/a |
vpc_id |
n/a |
module "vpc" {
source = "./vpc"
name = var.name
env = var.env
vpc_cidr = "10.0.0.0/16"
public_subnets = [
{
cidr_block = "10.0.0.0/24"
availability_zone = "eu-west-1a"
},
{
cidr_block = "10.0.1.0/24"
availability_zone = "eu-west-1b"
}
]
private_subnets = [
{
cidr_block = "10.0.100.0/24"
availability_zone = "eu-west-1a"
},
{
cidr_block = "10.0.101.0/24"
availability_zone = "eu-west-1b"
}
]
}