/transitgateway
Configures AWS Transit Gateway: creating a hub and attaching VPCs, segmenting traffic with route tables, centralizing egress and inspection through a hub (appliances or a Gateway Load Balancer endpoint), forcing east-west traffic between VPCs through AWS Network Firewall,
$ npx -y skills add aws/agent-toolkit-for-aws --skill transitgateway --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/transitgateway
Context preview
The summary Claude sees to decide when to auto-load this skill.
Configures AWS Transit Gateway: creating a hub and attaching VPCs, segmenting traffic with route tables, centralizing egress and inspection through a hub (appliances or a Gateway Load Balancer endpoint), forcing east-west traffic between VPCs through AWS Network Firewall,
SKILL.md
transitgateway.SKILL.mdname: transitgateway
description: >-
Configures AWS Transit Gateway: creating a hub and attaching VPCs, segmenting traffic with route
tables, centralizing egress and inspection through a hub (appliances or a Gateway Load Balancer
endpoint), forcing east-west traffic between VPCs through AWS Network Firewall, connecting
on-premises networks over the transit-gateway side of a Site-to-Site VPN or Direct Connect
attachment (including ECMP to aggregate bandwidth across multiple VPN tunnels), peering transit
gateways across Regions, migrating from a VPC peering mesh, and routing IP multicast. Applicable
when connecting many VPCs through one router, isolating environments, forcing VPC-to-VPC traffic
through a central Network Firewall, reaching on-premises over the hub, linking Regions, or moving
off a peering mesh. Not applicable for single-VPC routing, VPC peering between two VPCs (vpcpeering
skill), Direct Connect gateway or virtual interface setup (directconnect skill), or Route 53 DNS
work.
version: 1
AWS Transit Gateway
Overview
Domain expertise for configuring AWS Transit Gateway, the Regional network hub that connects many VPCs and on-premises networks through a single router instead of a mesh of point-to-point connections. Covers building the hub and attaching VPCs, segmenting traffic with route tables, centralizing egress and inspection, east-west inspection with AWS Network Firewall, hybrid connectivity over Site-to-Site VPN and Direct Connect, inter-Region peering, migrating off a VPC peering mesh, and IP multicast.
This skill is a router. Each customer task maps to a procedure file under `references/`. Read the matching reference in full before acting, then follow its constraints and steps. The reference files are self-contained: each carries its own decision tables, constraints, procedure, and troubleshooting.
Execute commands using the AWS MCP server when connected (sandboxed execution, audit logging, observability). Fall back to the AWS CLI otherwise. All CLI operations require least-privilege, ephemeral credentials (an assumed IAM role through AWS STS or AWS IAM Identity Center / SSO), never long-lived IAM user access keys. A transit gateway is a Regional resource: run each `aws ec2` transit gateway command in the Region that holds the hub.
Which Transit Gateway task do you need?
| Goal | Reference | | --- | --- | | Create a Regional hub and connect VPCs to it | [creating a transit gateway and attaching VPCs](references/creating-a-transit-gateway-and-attaching-vpcs.md) | | Isolate some VPCs while letting others share services | [segmenting traffic with route tables](references/segmenting-traffic-with-route-tables.md) | | Send all spoke traffic out through one inspected egress VPC | [centralizing egress and inspection](references/centralizing-egress-and-inspection.md) | | Inspect traffic between VPCs with AWS Network Firewall | [inspecting east-west traffic with Network Firewall](references/inspecting-east-west-traffic-with-network-firewall.md) | | Reach on-premises networks over Site-to-Site VPN or Direct Connect | [connecting on-premises networks](references/connecting-on-premises-networks.md) | | Link transit gateways in two Regions over the AWS network | [peering transit gateways across Regions](references/peering-transit-gateways-across-regions.md) | | Move off a VPC peering mesh without dropping traffic | [migrating from VPC peering](references/migrating-from-vpc-peering.md) | | Distribute IP multicast across attached VPCs | [routing multicast traffic](references/routing-multicast-traffic.md) |
Routing notes
- **Decide segmentation before you build.** "Default route table association" and "Default route
table propagation" are on by default, which wires every attachment into one open mesh. If the customer plans isolated environments, the creating reference disables the defaults up front and hands off to the segmenting reference. Retrofitting isolation onto an open hub is a re-architect.
- **North-south egress vs east-west inspection.** Centralizing egress sends spoke traffic out to
the internet through a central VPC. East-west inspection keeps traffic between spokes internal and forces it through a firewall on the way. They look similar but use different route table recipes. Match the reference to the direction of traffic the customer actually has.
- **Appliance vs Gateway Load Balancer for inspection.** Raw third-party appliances and a Gateway
Load Balancer (GWLB) endpoint are two paths to the same goal. GWLB is the recommended approach for new designs. Both live in the centralizing-egress reference; appliance mode and the GWLB endpoint route table entries differ and the reference covers each.
- **Appliance mode is required for stateful cross-Availability-Zone inspection, with a tradeoff.** Appliance mode
keeps each flow on one Availability Zone's appliance so request and response do not split. It also disables cross-Availability-Zone failover for that attachment, so the inspection design must pair it with health-check-based failover. Both the egress and east-west references carry this.
- **Transit gateway side vs Direct Connect side.** The connecting-on-premises reference covers the
transit gateway side: Site-to-Site VPN attachment options, route propagation, and equal-cost multi-path (ECMP). The Direct Connect gateway and virtual interface setup belongs to the separate `directconnect` skill. Do not restate the Direct Connect side here.
Security considerations
A transit gateway is the central routing point for many VPCs and on-premises networks, so a misconfiguration here has blast radius across every attached network. Apply these controls regardless of the specific task; each per-task reference carries the detail.
- You MUST enable Transit Gateway Flow Logs for traffic visibility, audit, and incident response
across the hub, and MUST enable encryption at rest on the destination (a KMS
Read more
name: transitgateway description: >- Configures AWS Transit Gateway: creating a hub and attaching VPCs, segmenting traffic with route tables, centralizing egress and inspection through a hub (appliances or a Gateway Load Balancer endpoint), forcing east-west traffic between VPCs through AWS Network Firewall, connecting on-premises networks over the transit-gateway side of a Site-to-Site VPN or Direct Connect attachment (including ECMP to aggregate bandwidth across multiple VPN tunnels), peering transit gateways across Regions, migrating from a VPC peering mesh, and routing IP multicast. Applicable when connecting many VPCs through one router, isolating environments, forcing VPC-to-VPC traffic through a central Network Firewall, reaching on-premises over the hub, linking Regions, or moving off a peering mesh. Not applicable for single-VPC routing, VPC peering between two VPCs (vpcpeering skill), Direct Connect gateway or virtual interface setup (directconnect skill), or Route 53 DNS work. version: 1
AWS Transit Gateway
Overview
Domain expertise for configuring AWS Transit Gateway, the Regional network hub that connects many VPCs and on-premises networks through a single router instead of a mesh of point-to-point connections. Covers building the hub and attaching VPCs, segmenting traffic with route tables, centralizing egress and inspection, east-west inspection with AWS Network Firewall, hybrid connectivity over Site-to-Site VPN and Direct Connect, inter-Region peering, migrating off a VPC peering mesh, and IP multicast.
This skill is a router. Each customer task maps to a procedure file under `references/`. Read the matching reference in full before acting, then follow its constraints and steps. The reference files are self-contained: each carries its own decision tables, constraints, procedure, and troubleshooting.
Execute commands using the AWS MCP server when connected (sandboxed execution, audit logging, observability). Fall back to the AWS CLI otherwise. All CLI operations require least-privilege, ephemeral credentials (an assumed IAM role through AWS STS or AWS IAM Identity Center / SSO), never long-lived IAM user access keys. A transit gateway is a Regional resource: run each `aws ec2` transit gateway command in the Region that holds the hub.
Which Transit Gateway task do you need?
| Goal | Reference | | --- | --- | | Create a Regional hub and connect VPCs to it | [creating a transit gateway and attaching VPCs](references/creating-a-transit-gateway-and-attaching-vpcs.md) | | Isolate some VPCs while letting others share services | [segmenting traffic with route tables](references/segmenting-traffic-with-route-tables.md) | | Send all spoke traffic out through one inspected egress VPC | [centralizing egress and inspection](references/centralizing-egress-and-inspection.md) | | Inspect traffic between VPCs with AWS Network Firewall | [inspecting east-west traffic with Network Firewall](references/inspecting-east-west-traffic-with-network-firewall.md) | | Reach on-premises networks over Site-to-Site VPN or Direct Connect | [connecting on-premises networks](references/connecting-on-premises-networks.md) | | Link transit gateways in two Regions over the AWS network | [peering transit gateways across Regions](references/peering-transit-gateways-across-regions.md) | | Move off a VPC peering mesh without dropping traffic | [migrating from VPC peering](references/migrating-from-vpc-peering.md) | | Distribute IP multicast across attached VPCs | [routing multicast traffic](references/routing-multicast-traffic.md) |
Routing notes
- **Decide segmentation before you build.** "Default route table association" and "Default route
table propagation" are on by default, which wires every attachment into one open mesh. If the customer plans isolated environments, the creating reference disables the defaults up front and hands off to the segmenting reference. Retrofitting isolation onto an open hub is a re-architect.
- **North-south egress vs east-west inspection.** Centralizing egress sends spoke traffic out to
the internet through a central VPC. East-west inspection keeps traffic between spokes internal and forces it through a firewall on the way. They look similar but use different route table recipes. Match the reference to the direction of traffic the customer actually has.
- **Appliance vs Gateway Load Balancer for inspection.** Raw third-party appliances and a Gateway
Load Balancer (GWLB) endpoint are two paths to the same goal. GWLB is the recommended approach for new designs. Both live in the centralizing-egress reference; appliance mode and the GWLB endpoint route table entries differ and the reference covers each.
- **Appliance mode is required for stateful cross-Availability-Zone inspection, with a tradeoff.** Appliance mode
keeps each flow on one Availability Zone's appliance so request and response do not split. It also disables cross-Availability-Zone failover for that attachment, so the inspection design must pair it with health-check-based failover. Both the egress and east-west references carry this.
- **Transit gateway side vs Direct Connect side.** The connecting-on-premises reference covers the
transit gateway side: Site-to-Site VPN attachment options, route propagation, and equal-cost multi-path (ECMP). The Direct Connect gateway and virtual interface setup belongs to the separate `directconnect` skill. Do not restate the Direct Connect side here.
Security considerations
A transit gateway is the central routing point for many VPCs and on-premises networks, so a misconfiguration here has blast radius across every attached network. Apply these controls regardless of the specific task; each per-task reference carries the detail.
- You MUST enable Transit Gateway Flow Logs for traffic visibility, audit, and incident response
across the hub, and MUST enable encryption at rest on the destination (a KMS
Help AI coding agents build, deploy, and manage applications on AWS. The Agent Toolkit for AWS gives AI coding agents the tools, knowledge, and guardrails they need to work with AWS services.
Repo: aws/agent-toolkit-for-aws
Other skills on agent-toolkit-for-aws.
- /analyzing-release-readiness
Trigger a pre-merge release readiness review on a GitHub PR, GitLab MR, or local branch. Use when the user wants to analyze code changes for risk, correctness, and potential rollback issues before merging. Trigger words include release readiness, analyze PR, analyze MR, review
Open skill - /chatting-with-aws-devops-agent
Have a fast, conversational analysis with the AWS DevOps Agent. Use for cost optimization, architecture review, topology mapping, knowledge / runbook discovery, security audits, dependency questions, and quick diagnostics — anything that needs a 5-30 second answer rather than a
Open skill - /coordinating-multi-space-devops-agent
Coordinate the AWS DevOps Agent across multiple AgentSpaces from one Claude Code session — route questions to the right space (prod vs staging vs knowledge), query several spaces in parallel and synthesize, or compare findings across accounts. Use whenever the user has more than
Open skill - /diff-scanning-with-aws-security-agent
Run a fast AWS Security Agent diff scan on only the changed code since a git ref. Use when the user asks to scan changes, run a diff scan, check what changed for security issues, scan before committing, scan before PR, or any pre-commit/pre-push security check.
Open skill - /investigating-incidents-with-aws-devops-agent
Run a deep root-cause investigation on the AWS DevOps Agent. Use when the user describes an incident, alarm, outage, or unexplained behavior — keywords like "5xx", "503", "OOM", "latency spike", "deployment failure", "rollback", "sev1", "investigate", "root cause", "debug",
Open skill - /pentesting-with-aws-security-agent
Run an AWS Security Agent penetration test against a live web application — registers and verifies the target domain, exercises the supplied endpoints with the managed Security Agent service, and returns verified runtime findings. Use when the user asks to pentest, run a
Open skill

