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
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 -yInstalls 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- Enabling Lambda Vpc Internet Access7K
- Exporting Rds To S37K
- Setting Up Cloudtrail Multi Region7K
- Creating Amazon Aurora Db Cluster With Instances6.9K
- Troubleshooting Efs6.8K
- Aws Lambda Durable Functions6.8K
- Aws Lambda Managed Instances6.7K
- Aws Lambda Microvms6.7K
- Aws Cleanrooms6.7K
- Amazon Aurora Postgresql6.6K
- Querying Aws S36.5K
- Amazon Opensearch Service6.5K
- Querying Aws Cloudwatch6.5K
- Routing Traffic With Route53 And Cloudfront6.5K
- Amazon Elasticache6.4K
- Amazon Aurora Mysql6.2K
- Managing Amazon Msk6K
- Developing Applications On Managed Service For Apache Flink5.9K
- Aws Serverless11.8K
- Aws Iam11.7K
- Aws Observability11.6K
- Aws Containers11K
- Aws Cdk11K
- Aws Billing And Cost Management10.5K
Similar to Connecting Vpcs With Peering
More DevOps & Cloudconfiguring-vpc-endpoints-for-private-aws-service-accessaws/agent-toolkit-for-aws7.4K installsPrivate AWS service access through VPC endpoints, covering gateway and interface types built on PrivateLink.
creating-production-vpc-multi-azaws/agent-toolkit-for-aws7.1K installsProduction-ready multi-AZ VPC with public and private subnets, NAT gateways, and tiered security groups.
hybrid-cloud-networkingwshobson/agents11.3K installsMulti-cloud hybrid connectivity guide covering VPN and dedicated links to AWS, Azure, GCP, and OCI.
digitalocean-networkingbobmatnyc/claude-mpm-skills425 installsDigitalOcean networking reference covering VPC, firewalls, load balancers, reserved IPs, DNS, IPv6, and NAT gateway.
dns-managementaj-geddes/useful-ai-prompts484 installsMulti-provider DNS playbook covering failover, geo-routing, and zero-downtime migrations on Route53, Azure DNS, or CloudFlare.