module "vpc" {
source = "josephphyo/vpc/aws"
vpc_cidr = "192.168.0.0/16"
public_sn_cidr = ["192.168.1.0/24", "192.168.2.0/24"]
private_sn_cidr = ["192.168.3.0/24", "192.168.4.0/24"]
dest_cidr_block_public_route = "0.0.0.0/0"
dest_cidr_block_private_route = "0.0.0.0/0"
is_one_nat_gw = true
}
Name | Version |
---|---|
terraform | ~> v1.0.1 |
aws | ~> 3.48.0 |
Name | Version |
---|---|
aws | ~> 3.48.0 |
No modules.
Name | Type |
---|---|
aws_eip.nat | resource |
aws_internet_gateway.igw | resource |
aws_nat_gateway.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.regional_vpc | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
dest_cidr_block_private_route | Private route to NAT gateway | string |
n/a | yes |
dest_cidr_block_public_route | Public route to internet | string |
n/a | yes |
is_one_nat_gw | Only Create One NAT on public subnet | bool |
n/a | yes |
private_sn_cidr | CIDR block for private subnet | list(string) |
n/a | yes |
public_sn_cidr | CIDR block for public subnet | list(string) |
n/a | yes |
regional_tag | Tagging Variable | string |
"regional" |
no |
vpc_cidr | CIDR block for the VPC | string |
n/a | yes |
Name | Description |
---|---|
private_subnet_id | Private Subnet ID |
public_subnet_id | Public Subnet ID |
vpc_arn | VPC_ARN |
vpc_id | VPC ID |