How oringejooz/multi-az-vpc works
Project type and purpose
• This is an Infrastructure-as-Code (IaC) project using Terraform to provision a production-ready AWS VPC (Virtual Private Cloud) environment.
• Its purpose is to create a modular, multi-AZ VPC with public/private subnets, NAT gateways, security controls, VPC endpoints, and flow logs.
File structure
• Top-level files:
• main.tf, variables.tf, outputs.tf, versions.tf – the root configuration that ties all modules together
• examples/complete – a sample deployment showcasing all modules in action
• .terraform.lock.hcl, .gitignore – standard Terraform lock and ignore files
• modules/ directory: each subdirectory is a self-contained Terraform module:
• vpc – defines the VPC, Internet Gateway, VPC Flow Logs
• subnets – creates public, private, and database subnets across AZs
• nat-gateway – provisions NAT Gateways and associated Elastic IPs
• route-tables – defines route tables and associations
• security – sets up Security Groups and Network ACLs
• vpc-endpoints – configures interface & gateway endpoints
• flowlogs – optional VPC Flow Logs (if separate from vpc module)
• dhcp – custom DHCP options sets
• examples/complete references all modules to spin up the full stack.
README for additional insights
• Architecture section spells out CIDRs, AZ mapping, and components: IGW, NAT, route tables, SGs, ACLs, endpoints, flow logs.
• Modules list confirms the split of responsibilities.
• Usage shows Terraform workflow (init, plan, apply).
– Capture all AWS networking components and their interconnections
– Annotate AZ distribution and CIDR blocks for clarity
– Highlight security controls (SGs, NACLs) around each subnet
– Keep it detailed enough for infra teams to understand dependencies and data flows