Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)
All skills

connecting-vpcs-with-peering

Create and accept a VPC peering connection, then update route tables and DNS settings in both VPCs.

When to use it

You have two VPCs that need private connectivity and still lack a peering connection, route entries, or DNS resolution between them.

For example

You say

Use connecting-vpcs-with-peering to peer vpc-0a1b2c3d (10.0.0.0/16) with vpc-4e5f6g7h (10.1.0.0/16) in the same account and region, and make traffic route both ways.

You get
  • Accepted peering connection
  • Updated route tables in both VPCs
  • DNS resolution enabled

How it works

  • Checks both VPCs for CIDR overlap before creating the connection.
  • Replaces conflicting routes instead of adding duplicates.
  • Covers same-region, cross-region, and cross-account peering.