Connecting Vpcs With Peering

作者 aws188af2f810ce無授權條款2.8K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Establishes VPC peering connections between two VPCs for direct private network connectivity. Always use this skill when creating or managing VPC peering — it validates CIDR overlap, updates all route tables in both VPCs, configures DNS resolution, and provides security group guidance that are critical for correct connectivity.

僅含說明DevOps & Cloud
AI 產生的概覽

指導在兩個 VPC 之間建立 VPC 對等連線,涵蓋路由表、DNS 解析與安全群組設定。

功能
此技能提供在兩個 VPC 之間建立與管理 VPC 對等連線的領域指引。內容涵蓋完整流程:驗證兩個 VPC 是否存在、檢查 CIDR 是否重疊、建立並接受對等連線、更新兩個 VPC 中的所有路由表、設定 DNS 解析,以及為跨 VPC 流量調整安全群組。它也涵蓋對等連線卡在 pending 狀態、路由建立失敗、DNS 問題與跨區域連線問題的疑難排解。
適用情境
適用於為兩個 VPC 之間建立直接私有網路連線而建立或管理 VPC 對等連線的情境。它適用於同區域、跨區域與跨帳號對等連線,也適合診斷對等連線卡在 pending 狀態或路由缺漏等問題。
執行需求
僅為說明性內容,未隨附指令碼。它引用一份流程文件,至少需要請求方與接受方的 VPC ID,並需要存取相關雲端網路環境以套用這些步驟。

Connecting VPCs with Peering

Overview

Domain expertise for establishing private network connectivity between two VPCs using VPC peering. Covers the full lifecycle: creating the peering connection, accepting it, updating route tables in both VPCs, configuring DNS resolution, and adjusting security groups for cross-VPC traffic. Supports same-region, cross-region, and cross-account peering scenarios.

Create a VPC peering connection

To establish a VPC peering connection between two VPCs, follow the procedure exactly. See VPC peering connection procedure [blocked].

The procedure requires the requester and accepter VPC IDs at minimum. It validates both VPCs exist, checks for CIDR overlap, creates and accepts the peering, updates all route tables, and configures DNS resolution.

Troubleshooting

Peering stuck in pending state

Cross-account connections require manual acceptance from the accepter account. Same-account connections with auto_accept: true should transition automatically.

Route creation fails

Check for existing routes with the same destination CIDR. Replace existing routes instead of creating new ones.

DNS resolution not working

Both VPCs must have DNS resolution and DNS hostnames enabled in their VPC settings, not just the peering connection options.

Cross-region connectivity issues

Verify routes are added in both regions and security groups allow traffic from the peer VPC's CIDR blocks.

來源與署名

來源:aws/agent-toolkit-for-aws位於skills/specialized-skills/networking-and-content-delivery-skills/connecting-vpcs-with-peering提交188af2f

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架