Terraform module to create AWS Subnet.
No requirements.
Name | Version |
---|---|
aws | n/a |
No modules.
Name | Type |
---|---|
aws_eip.public_ngw_eip | resource |
aws_nat_gateway.public_ngw | resource |
aws_route.private | resource |
aws_route.public | resource |
aws_route_table.private | resource |
aws_route_table.public | resource |
aws_route_table_association.private | resource |
aws_route_table_association.public | resource |
aws_subnet.private | resource |
aws_subnet.public | resource |
aws_vpc.default | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
availability_zone | Availability Zone where subnets will be created | string |
n/a | yes |
cidr_block | Base CIDR block which will be divided into subnet CIDR blocks (e.g. 10.0.0.0/16 ) |
string |
"null" |
no |
igw_id | Internet Gateway ID the public route table will point to | string |
"" |
no |
labels | Minimum required map of labels(tags) for creating aws resources | object({ |
n/a | yes |
map_public_ip_on_launch | Instances launched into a public subnet should be assigned a public IP address | bool |
true |
no |
ngw_id | NAT Gateway ID which will be used as a default route in private route tables | string |
"" |
no |
subnet_name | optionally define a custom value for the subnet. By default, it is defined as a construction from var.labels |
string |
"default" |
no |
tags | Additional tags | map(string) |
{} |
no |
type | Type of subnets (private or public ) |
string |
"private" |
no |
vpc_id | VPC ID where subnets will be created (e.g. vpc-aceb2723 ) |
string |
n/a | yes |
Name | Description |
---|---|
ngw_id | NAT Gateway ID |
subnet_id | ID of the created public subnets |