What This Module Does
This module creates a complete VPC infrastructure with:Network Architecture
Multi-tier subnet design across availability zones with public, private, database, and ElastiCache subnets
Internet Connectivity
Internet Gateway for public subnets and configurable NAT Gateways for private subnet egress
AWS Service Access
VPC Endpoints for cost-effective, secure access to S3 and DynamoDB without internet routing
High Availability
Automated distribution across availability zones with per-AZ routing and optional shared NAT
Key Features
Multi-AZ Subnet Architecture
The module automatically distributes subnets across specified availability zones, creating a resilient network foundation:- Public Subnets: Internet-facing resources with Internet Gateway routing
- Private Subnets: Backend services with NAT Gateway egress
- Database Subnets: Isolated RDS instances with automatic subnet group creation
- ElastiCache Subnets: Dedicated cache layer subnets with subnet group management
Flexible NAT Gateway Deployment
Choose the NAT Gateway strategy that fits your requirements:High Availability Mode: Deploys one NAT Gateway per availability zone for redundancy and higher bandwidth.Cost-Optimized Mode: Uses a single NAT Gateway shared across all private subnets to minimize costs.
VPC Endpoints for AWS Services
Reduce data transfer costs and improve security by accessing AWS services directly from your VPC:- S3 Endpoint: Gateway endpoint for S3 access without internet routing
- DynamoDB Endpoint: Gateway endpoint for DynamoDB with no data transfer charges
Comprehensive Tagging Support
Apply consistent tagging across all resources:Use Cases
This module is ideal for:- Multi-tier web applications requiring public, private, and data layer separation
- Microservices architectures needing isolated network segments
- Database deployments with RDS or ElastiCache requiring dedicated subnet groups
- Production workloads demanding high availability across multiple AZs
- Cost-sensitive environments that can benefit from shared NAT or VPC endpoints
Architecture Overview
The module creates the following network topology:Next Steps
Quick Start
Deploy your first VPC in minutes with step-by-step instructions
Configuration Reference
Explore all available variables and customization options