/tf-aws-vpc

terraform aws vpc

Primary LanguageHCL

Providers

Name Version
aws ~>3.76.1

Modules

Name Source Version
vpc terraform-aws-modules/vpc/aws 3.19
vpc_endpoints ./modules/vpc-endpoints n/a

Inputs

Name Description Type Default Required
aws_region Region in which AWS Resources to be created string "us-east-1" no
division project or department in the large organization this Infrastructure belongs string "jingood2" no
environment Environment Variable used as a prefix string "dev" no
vpc_availability_zones VPC Availability Zones list(string)
[
"us-east-1a",
"us-east-1b"
]
no
vpc_cidr_block VPC CIDR Block string "10.0.0.0/16" no
vpc_create_database_subnet_group VPC Create Database Subnet Group bool true no
vpc_create_database_subnet_route_table VPC Create Database Subnet Route Table bool true no
vpc_database_subnets VPC Database Subnets list(string)
[
"10.0.151.0/24",
"10.0.152.0/24"
]
no
vpc_enable_nat_gateway Enable NAT Gateways for Private Subnets Outbound Communication bool true no
vpc_name VPC Name string "myvpc" no
vpc_private_subnets VPC Private Subnets list(string)
[
"10.0.1.0/24",
"10.0.2.0/24"
]
no
vpc_public_subnets VPC Public Subnets list(string)
[
"10.0.101.0/24",
"10.0.102.0/24"
]
no
vpc_single_nat_gateway Enable only single NAT Gateway in one Availability Zone to save costs during our demos bool true no

Outputs

Name Description
azs A list of availability zones spefified as argument to this module
nat_public_ips List of public Elastic IPs created for AWS NAT Gateway
private_subnets List of IDs of private subnets
public_subnets List of IDs of public subnets
vpc_cidr_block The CIDR block of the VPC
vpc_id The ID of the VPC