This module can be used to deploy an AWS public subnet which is intended to be used with a nat gateway.
region
- The region in which vpc residesenv
- The environment namename
- The name of the subnetvpc_id
- The id of the vpccidr_block
- The cidr block for the subnetvpc_main_route_table_id
- The main route table id of the vpc
module "public_subnet" {
source = "github.com/fierceventures/terraform-public-subnet"
region = "ap-southeast-2"
env = "test"
name = "primary"
vpc_id = "${module.vpc.id}"
cidr_block = "172.31.1.0/16"
vpc_main_route_table_id = "${module.vpc.main_route_table_id}"
}
id
- The id of the subnet
Created and maintained by Fierce Ventures