Skip to content
aws avatar

Connecting Vpcs With Peering

Step-by-step VPC peering setup that checks CIDR overlap and updates route tables and DNS in both VPCs.

CCM score
68 of 100
skills.sh installs
7K
GitHub stars
3.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers creating, accepting, and routing a peering connection between two VPCs in the same region, across regions, or across accounts
  • Includes a procedure reference (references/vpc-peering-connection.md) and troubleshooting for pending peers, route conflicts, DNS resolution, and cross-region traffic
  • Enforces a CIDR overlap check before creation, then updates route tables in both VPCs and configures DNS resolution
  • Designed for engineers connecting private networks in AWS who need correct routing, DNS, and security group settings

Install

$ npx -y skills add aws/agent-toolkit-for-aws --skill connecting-vpcs-with-peering -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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.

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.

Details

Repository
github.com/aws/agent-toolkit-for-aws
Category
DevOps & Cloud
First seen
Jun 3, 2026

More from aws/agent-toolkit-for-aws

All 54

Similar to Connecting Vpcs With Peering

More DevOps & Cloud