Skip to content

champ-oss/terraform-aws-vpc

Repository files navigation

terraform-aws-vpc

Requirements

Name Version
aws >= 3.71.0

Providers

Name Version
aws >= 3.71.0

Modules

No modules.

Resources

Name Type
aws_cloudwatch_log_group.this resource
aws_eip.this resource
aws_flow_log.this resource
aws_iam_role.this resource
aws_iam_role_policy.this resource
aws_internet_gateway.this resource
aws_nat_gateway.this 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.this resource
aws_vpc_dhcp_options.this resource
aws_vpc_dhcp_options_association.this resource
aws_vpc_endpoint.s3 resource
aws_availability_zones.this data source
aws_iam_policy_document.assume data source
aws_iam_policy_document.this data source
aws_region.this data source

Inputs

Name Description Type Default Required
availability_zones_count Number of availability zones to use when creating subnets number 3 no
cidr_block CIDR block to use for the VPC. By default 10.0.0.0 with a size of /16 is used. string "10.0.0.0" no
cidr_size CIDR block size for the VPC. By default a /16 CIDR block is created. number 16 no
create_private_subnets If disabled only public subnets will be created bool true no
git Name of the Git repo string n/a yes
private_subnet_tags Additional tags to be applied to private subnets map(string) {} no
public_subnet_tags Additional tags to be applied to public subnets map(string) {} no
retention_in_days Retention period for VPC flow logs number 90 no
subnet_size How many bits to use for creating each subnet. number 4 no
tags Additional tags to be applied to all resources map(string) {} no

Outputs

Name Description
all_route_table_ids https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route_table#id
all_subnets_ids https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/subnet#id
cidr_block https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc#cidr_block
nat_public_ips https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eip#public_ip
private_route_table_ids https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route_table#id
private_subnets_ids https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/subnet#id
public_route_table_id https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route_table#id
public_subnets_ids https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/subnet#id
vpc_id https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc#id