This module can be used to deploy an AWS private subnet.
region
- The region in which vpc residesenv
- The environment namevpc_id
- The id of the vpcname
- The name of the subnetcidr_block
- The cidr block for the subnetprivate_route_table_id
- The private 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.2.0/16"
private_route_table_id = "${module.vpc.private_route_table_id}"
}
id
- The id of the subnet
Created and maintained by Fierce Ventures