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.
npx skills add aws/agent-toolkit-for-aws --skill connecting-vpcs-with-peering -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/connecting-vpcs-with-peering/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/connecting-vpcs-with-peering/
1Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill connecting-vpcs-with-peering -a codex2Manually: put the files in place
.agents/skills/connecting-vpcs-with-peering/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill connecting-vpcs-with-peering -a cursor2Manually: put the files in place
.cursor/skills/connecting-vpcs-with-peering/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install aws/agent-toolkit-for-aws connecting-vpcs-with-peering2Manually: put the files in place
.github/skills/connecting-vpcs-with-peering/SKILL.md1Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill connecting-vpcs-with-peering -a gemini-cli2Platform CLI
gemini skills install https://github.com/aws/agent-toolkit-for-aws --path skills/specialized-skills/networking-and-content-delivery-skills/connecting-vpcs-with-peeringManually: put the files in place
.devin/skills/connecting-vpcs-with-peering/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill connecting-vpcs-with-peering -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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