360 Secure SkillHub
360 安全技能中心

creating-production-vpc-multi-az

该 Skill 依据 AWS Well-Architected 原则,提供跨多个可用区创建生产级 VPC 的逐步流程:自动规划 CIDR,配置公有/私有子网、Internet 网关、NAT 网关、路由表和分层安全组,并涵盖可用区不足、NAT 网关创建延迟及安全组 CIDR 告警的排查。

分类:自动化
aws
热度 50.19
最近更新 2026-10-18 16:45:21

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add aws/agent-toolkit-for-aws/creating-production-vpc-multi-az
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
creating-production-vpc-multi-az
description
Creates a production-ready VPC with public and private subnets across multiple Availability Zones, including internet gateway, NAT gateways, route tables, and security groups following AWS Well-Architected principles. Use when deploying multi-AZ VPC infrastructure with automatic CIDR planning and DNS resolution.
version
1

Creating a Production-Ready VPC Across Multiple Availability Zones

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.

Create a production 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:

  • vpc_name (required): Name prefix for all resources
  • region (required): Target AWS region
  • allowed_web_cidrs (required): CIDR blocks allowed for web access — allow 0.0.0.0/0 only if explicitly requested
  • vpc_cidr (optional, default 10.0.0.0/16): VPC CIDR block
  • availability_zones (optional, default 3): Number of AZs (2–6)
  • environment (required): Environment tag
  • enable_ssh_access (optional, default false): Whether to create SSH security group

Troubleshooting

Insufficient Availability Zones

The target region must have at least 2 available AZs. Use aws ec2 describe-availability-zones to verify.

NAT Gateway creation delays

NAT Gateways can take several minutes to become available. The procedure waits for availability before configuring route tables.

Security group CIDR warnings

The procedure warns about 0.0.0.0/0 for web access CIDRs and recommends specific IP ranges for production workloads, but allows it if explicitly requested.