Contained within are modules for deploying baseline resources within a respoective AWS environment using Terraform. The below module is used for AWS VPC purposes.
Below are the available Variables contained within this VPC module.
Key | Type | Default | Description |
---|---|---|---|
azs | list | List of AWS availability zones in current region | |
cidr | string | CIDR block of your VPC | |
create_igw | boolean | Create an internet gateway(requires public subnet)? | |
enable_dns_hostnames | boolean | false |
Should be true to enable DNS hostnames in the VPC |
enable_dns_support | boolean | true |
Should be true to enable DNS support in the VPC |
enable_nat_gateway | boolean | Create NAT gateway | |
manage_default_network_acl | boolean | false |
Should be true to adopt and manage default network acl in the VPC |
manage_default_route_table | boolean | false |
Should be true to adopt and manage default route table in the VPC |
manage_default_security_group | boolean | false |
Should be true to adopt and manage default security group in the VPC |
map_public_ip_on_launch | boolean | false |
Specify true to indicate that instances launched into the subnet should be assigned a public IP address |
name | string | Name of your VPC (an overwrite option to use a custom name) | |
one_nat_gateway_per_az | boolean | Use a single NAT gateway for each availability zone | |
private_subnets | list | List of CIDR blocks for each private subnets to be created | |
public_subnets | list | List of CIDR blocks for each public subnets to be created | |
resource_prefix | string | Prefix for resource names | |
single_nat_gateway | boolean | Use a single NAT gateway (low availability) |
Below are the available Outputs contained within this DNS moudle:
Key | Type | Default | Description |
---|---|---|---|
private_route_table_id | module.vpc.private_route_table_ids[0] |
Private VPC Route Table ID's | |
private_subnets | module.vpc.private_subnets |
Private VPC Subnets | |
private_subnets_cidr_blocks | module.vpc.private_subnets_cidr_blocks |
Private VPC Subnet CIDR Blocks | |
public_route_table_id | module.vpc.public_route_table_ids[0] |
Public VPC Route Table ID's | |
public_subnets | module.vpc.public_subnets |
Public VPC Subnets | |
public_subnets_cidr_blocks | module.vpc.public_subnets_cidr_blocks |
Public VPC Subnet CIDR Blocks | |
vpc_cidr_block | module.vpc.vpc_cidr_block |
VPC Cidr block | |
vpc_id | module.vpc.vpc_id |
VPC ID |