How hashicorp/terraform-aws-vpc works
This is a Terraform module for provisioning AWS VPC networking. The principal workflow is a caller supplying network and feature configuration, then the module creating the requested VPC resources and exposing outputs. Its documented capabilities span subnet tiers, routing and NAT, gateways, network ACLs, service endpoints, and subnet groups, as well as default-VPC and DHCP options management. Source excerpts were not provided, so component links rely on README statements; paths identify the relevant files from the tree.
Main entry points: main.tf VPC · outputs.tf Module outputs · vpc-endpoints.tf VPC endpoints
Components 15
VPC foundation
- VPC
main.tf - Module outputs
outputs.tf
Subnets and routing
- Subnet tiers
main.tf - Routes and tables
main.tf
Connectivity features
- Internet gateway
main.tf - NAT gateways
main.tf - VPN gateway
main.tf - VPC endpoints
vpc-endpoints.tf
Supporting resources
- Network ACLs
main.tf - Service subnet groups
main.tf - DHCP options
main.tf - Default VPC
main.tf - Default network ACL
main.tf
Other components
- Terraform caller
- AWS
Connections 15
- Terraform caller → VPC: configures
README.md - VPC → Subnet tiers: creates
README.md - VPC → Routes and tables: creates
README.md - VPC → Internet gateway: creates
README.md - VPC → NAT gateways: creates
README.md - VPC → VPN gateway: creates
README.md - VPC → VPC endpoints: creates
README.md - VPC → Network ACLs: creates
README.md - VPC → Service subnet groups: creates
README.md - VPC → DHCP options: creates
README.md - VPC → Default VPC: manages
README.md - VPC → Default network ACL: manages
README.md - Subnet tiers → NAT gateways: routes via
README.md - VPC → AWS: provisions resources
README.md - VPC → Module outputs: exposes
README.md