creating-production-vpc-multi-az
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCreating a Production-Ready VPC Across Multiple Availability Zones
创建跨多个可用区的生产级VPC
Overview
概述
Domain expertise for creating production-ready VPC infrastructure distributed across
multiple Availability Zones. Covers VPC creation with DNS support, public and private
subnet layout with automatic CIDR calculation, internet gateway, NAT gateways for
high-availability outbound access, route table configuration, and tiered security
groups following AWS Well-Architected principles.
本内容专注于创建跨多个可用区的生产级VPC基础设施的领域知识,涵盖支持DNS的VPC创建、具备自动CIDR计算功能的公有/私有子网布局、互联网网关、用于高可用出站访问的NAT网关、路由表配置,以及遵循AWS Well-Architected原则的分层安全组。
Create a production VPC
创建生产级VPC
To create a fully configured multi-AZ VPC with public/private subnets, NAT gateways,
route tables, and security groups, follow the procedure exactly.
See Production VPC creation procedure.
Key parameters:
- (required): Name prefix for all resources
vpc_name - (required): Target AWS region
region - (required): CIDR blocks allowed for web access — allow 0.0.0.0/0 only if explicitly requested
allowed_web_cidrs - (optional, default
vpc_cidr): VPC CIDR block10.0.0.0/16 - (optional, default 3): Number of AZs (2–6)
availability_zones - (required): Environment tag
environment - (optional, default false): Whether to create SSH security group
enable_ssh_access
如需创建配置完整的多可用区VPC(包含公有/私有子网、NAT网关、路由表和安全组),请严格遵循以下步骤。详见生产级VPC创建流程。
关键参数:
- (必填):所有资源的名称前缀
vpc_name - (必填):目标AWS区域
region - (必填):允许Web访问的CIDR块——仅在明确要求时才允许0.0.0.0/0
allowed_web_cidrs - (可选,默认值
vpc_cidr):VPC的CIDR块10.0.0.0/16 - (可选,默认值3):可用区数量(2–6)
availability_zones - (必填):环境标签
environment - (可选,默认值false):是否创建SSH安全组
enable_ssh_access
Troubleshooting
故障排查
Insufficient Availability Zones
可用区数量不足
The target region must have at least 2 available AZs. Use to verify.
aws ec2 describe-availability-zones目标区域必须至少有2个可用的可用区。可使用命令进行验证。
aws ec2 describe-availability-zonesNAT Gateway creation delays
NAT网关创建延迟
NAT Gateways can take several minutes to become available. The procedure waits for availability before configuring route tables.
NAT网关可能需要几分钟才能就绪。流程会等待网关就绪后再配置路由表。
Security group CIDR warnings
安全组CIDR警告
The procedure warns about for web access CIDRs and recommends specific IP ranges for production workloads, but allows it if explicitly requested.
0.0.0.0/0流程会针对Web访问CIDR设置为发出警告,并建议为生产工作负载使用特定IP范围,但如果明确要求,仍允许该设置。
0.0.0.0/0