Skip to main content
skill CX Codex

connecting-vpcs-with-peering — Claude Code skill: how to install

Sets up VPC peering connections between two VPCs for private network connectivity. It checks for CIDR overlap, updates route tables, and configures DNS resolution.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aws/agent-toolkit-for-aws --skill connecting-vpcs-with-peering -a claude-code
Open on GitHub

What connecting-vpcs-with-peering does

The skill guides the full process of AWS VPC peering. It verifies that both VPCs exist, validates that CIDR blocks do not overlap, creates the peering connection, and handles acceptance. The skill supports same-region, cross-region, and cross-account setups.

It requires the requester and accepter VPC IDs. Beyond creating the link, it updates route tables across both networks. Existing routes with the same destination CIDR must be replaced instead of duplicated.

Both VPCs must have DNS resolution and DNS hostnames enabled in their VPC settings. Cross-account links remain pending until accepted manually in the accepter account, while same-account connections can resolve automatically when auto_accept: true is set.

What it helps with

  • establish private VPC peering connections
  • validate CIDR overlap before creating peering links
  • update route tables across requester and accepter VPCs
  • configure DNS resolution and security groups for cross-VPC traffic

Example prompts for the agent

  • Set up a VPC peering connection between <requester-vpc-id> and <accepter-vpc-id>
  • Configure cross-region VPC peering and update all route tables
  • Troubleshoot DNS resolution and security group rules for VPC peering

How to install connecting-vpcs-with-peering

1Skills CLI (Vercel)

npx skills add aws/agent-toolkit-for-aws --skill connecting-vpcs-with-peering -a claude-code

2Manually: put the files in place

~/.claude/skills/connecting-vpcs-with-peering/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/connecting-vpcs-with-peering/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about connecting-vpcs-with-peering

How to install connecting-vpcs-with-peering in Claude Code?

Run npx skills add aws/agent-toolkit-for-aws --skill connecting-vpcs-with-peering -a claude-code in your terminal.

What does connecting-vpcs-with-peering do?

It manages VPC peering connections, validates CIDR overlaps, updates routing tables, and configures DNS options.

Why might a VPC peering connection stay in pending state?

Cross-account peering connections require manual acceptance from the accepter account before becoming active.

Source text

SKILL.md · Apache-2.0
---
name: connecting-vpcs-with-peering
description: 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.
version: 1
---

# 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](references/vpc-peering-connection.md).

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 · Apache-2.0 · aws/agent-toolkit-for-aws

Similar skills

Everything for Cloud: AWS, Azure, GCP →

From the same set133

creating-amazon-aurora-db-cluster-with-instances Creates Aurora cluster with instances, sets up password via Secrets Manager, and monitors status with retry logic. Supports MySQL and PostgreSQL. CX Codex +1 6,000installs setting-up-cloudtrail-multi-region Configures a multi-region AWS CloudTrail trail with S3 storage and CloudWatch Logs streaming. Useful for centralizing API audit logs and running security queries. CX Codex +1 6,100installs exporting-rds-to-s3 Walks the agent through exporting an RDS or Aurora snapshot to S3 as Parquet, from IAM roles and KMS encryption to task monitoring and data checks. CX Codex +1 6,100installs signing-in-to-aws Walks the agent through signing in to AWS from your local shell: version check, aws login once you confirm, then an identity check on the result. CX Codex +1 6,100installs enabling-lambda-vpc-internet-access A skill that walks the agent through NAT Gateway, route tables and security groups when a Lambda in a private subnet cannot reach the internet. CX Codex +1 6,100installs troubleshooting-efs A skill that walks the agent through Amazon EFS failures: mount errors, NFS timeouts, access denied, slow throughput. CX Codex +1 5,900installs aws-deployment Walks your coding agent through AWS CI/CD: CodePipeline, CodeBuild, CodeDeploy, CodeConnections, CodeArtifact. Useful when a pipeline stalls at source or a build hangs in a VPC. CX Codex +1 5,800installs aws-networking Routes AWS networking requests across seven services to their specialized implementation skills. It helps choose between connectivity and traffic filtering options. CX Codex +1 5,900installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor