single_nat_gateway
Use a single NAT gateway instead of one per AZ
Single vs Multiple NAT Gateways
| Configuration | Cost | Availability |
|---|---|---|
| Single NAT | Lower | Single point of failure |
| Per-AZ NAT | Higher | High availability |
Best Practices
- Use single NAT for development/testing
- Use per-AZ NAT for production
Full Module Example
module "vpc" {
source = "registry.patterneddesigns.ca/patterneddesigns/vpc/aws"
version = "0.1.0"
# single_nat_gateway
single_nat_gateway = "..."
# Other required inputs
name = "..."
vpc_cidr = "..."
availability_zones = "..."
}