К основному содержанию
скилл CX Codex

transitgateway — скилл для Claude Code: что делает и как установить

Настраивает AWS Transit Gateway для объединения десятков VPC и локальных сетей в единый хаб. Помогает сегментировать трафик таблицами маршрутизации и направить его через Network Firewall.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add aws/agent-toolkit-for-aws --skill transitgateway -a claude-code
Открыть на GitHub

Что делает transitgateway

Скилл выступает диспетчером типовых сетевых сценариев AWS. Внутри заложены инструкции для подключения VPC, настройки маршрутизации между регионами, включения мультикаста и миграции со связной сетки VPC peering. Для проверки трафика скилл помогает развернуть выделенный egress-VPC с фильтрацией через Gateway Load Balancer endpoint или сторонние виртуальные модули.

Выполнение команд идёт через подключённый AWS MCP сервер с аудитом и логированием, а при его отсутствии агент переключается на AWS CLI. Долговременные ключи доступа запрещены: для запуска команд aws ec2 в целевом регионе требуются временные роли через AWS STS или IAM Identity Center.

Продумывать изоляцию сетей нужно до создания хаба. По умолчанию AWS включает ассоциацию и распространение маршрутов для всех подключений в общую таблицу, поэтому разделение сред на работающем открытом хабе потребует полной перестройки архитектуры. Для настройки одиночных пирингов двух VPC или шлюзов Direct Connect скилл не подходит.

Какие задачи решает

  • объединить десятки изолированных VPC и корпоративную сеть через один региональный хаб
  • направить трафик между VPC на инспекцию в AWS Network Firewall
  • смигрировать сеть с множественных VPC peering соединений без простоя трафика
  • настроить агрегацию пропускной способности VPN-туннелей через ECMP

Примеры запросов агенту

  • Сконфигурируй AWS Transit Gateway и подключи три VPC с изоляцией продакшена от стейджинга
  • Настрой централизованный выход в интернет через egress VPC и Gateway Load Balancer
  • Подготовь миграцию с сетки VPC peering на Transit Gateway без потери пакетов

Как установить transitgateway

1Через Skills CLI (Vercel)

npx skills add aws/agent-toolkit-for-aws --skill transitgateway -a claude-code

2Вручную: положить файлы

~/.claude/skills/transitgateway/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/transitgateway/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора133

route53 Скилл для работы с Amazon Route 53: агент сам разбирается, какая процедура нужна, и ведёт по шагам. Пригодится, когда надо завести запись, разрулить трафик или закрыть домены. CX Codex +1 4 300установок aws-security Скилл помогает разобрать покрытие сервисов безопасности AWS, настройки сетевых экранов и находки GuardDuty. Работает строго в режиме чтения через локальный AWS CLI или AWS MCP. CX Codex +1 4 300установок directconnect Настраивает AWS Direct Connect: соединения, виртуальные интерфейсы, BGP, шифрование и отказоустойчивость. Нужен для частного канала между площадкой и AWS. CX Codex +1 4 000установок aws-resilience-lifecycle Ведёт агента по циклу Define → Test → Operate в AWS: от политики Resilience Hub v2 до экспериментов FIS и контролов ARC. CX Codex +1 4 100установок migrating-to-amazon-redshift Набор инструкций для переноса хранилища данных из Teradata в Amazon Redshift. Помогает оценить сложность проекта, переписать DDL, процедуры и выгрузить данные. CX Codex +1 3 900установок resilience-program-design Скилл помогает спроектировать программу отказоустойчивости: уровни политик, цели доступности, RTO/RPO, DR-подходы и график проверок. CX Codex +1 3 900установок arc-region-switch Скилл объясняет агенту, как устроен ARC Region switch: планы, воркфлоу, блоки выполнения и переключение между регионами AWS. CX Codex +1 3 900установок shieldadvanced Настраивает AWS Shield Advanced для защиты ресурсов от DDoS-атак и возврата средств за трафик. Пригодится при подключении CloudFront, балансировщиков или защите на уровне L7. CX Codex +1 4 000установок

Похожие

aws-vpc devops-skills Разворачивает трёхуровневую сеть в AWS с публичными, приватными и изолированными подсетями. Пригодится при настройке сетевой инфраструктуры через CLI. CX Codex +1 328установок huawei-cloud-network-query huaweicloud Чтение сетевых ресурсов Huawei Cloud: VPC, ELB, NAT, VPN и DNS через локальные Python-скрипты. Помогает провести аудит инфраструктуры и выгрузить параметры без риска изменений. CX Codex +1 17 000установок network-engineer VoltAgent Community Субагент проектирует облачные и гибридные сети, настраивает маршрутизацию и ищет причины сбоев. Пригодится при настройке VPC, правил файрвола и распределении трафика. 1 871установок hybrid-cloud-networking Seth Hobson Скилл помогает спроектировать связь между локальной инфраструктурой и AWS, Azure, GCP или OCI через VPN и выделенные подключения. CX Codex 10 600установок gcp-networking devops-skills Помогает разворачивать сети в Google Cloud: настраивать VPC, правила межсетевого экрана, Cloud NAT, балансировщики и Private Service Connect через CLI и Terraform. CX Codex +1 347установок edgesecurityaccess-wireguard-vpn reason-machines Скилл помогает агенту развернуть VPN-сервер на WireGuard: собрать сервер на Go, завести пользователей и выдать им конфиги через HTTP API. CX Codex +1 788установок

Вопросы о transitgateway

Как установить transitgateway в Claude Code?

Выполните команду npx skills add aws/agent-toolkit-for-aws --skill transitgateway -a claude-code. Файл навыка появится по пути ~/.claude/skills/transitgateway/SKILL.md.

Что делает скилл transitgateway?

Он даёт агенту инструкции для развёртывания хаба AWS Transit Gateway, сегментации сетей, связывания регионов и подключения локальных площадок через Site-to-Site VPN или Direct Connect.

Какие доступы и учётные данные нужны для работы скилла?

Операции выполняются через AWS MCP server или AWS CLI. Нужна временная сессия assumed IAM role через AWS STS или IAM Identity Center с минимальными правами, долгоживущие ключи IAM использовать нельзя.

Исходный текст

SKILL.md · Apache-2.0
---
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 key on the CloudWatch
  log group, or SSE-KMS on the S3 bucket).
- You MUST, when a KMS key encrypts a flow log destination (CloudWatch log group or S3 bucket) or a
  CloudTrail destination, scope the KMS key policy with condition keys (`aws:SourceArn`,
  `aws:SourceAccount`, and `kms:ViaService`) so only the specific log group, bucket, or trail in the
  expected account and service can use the key, preventing cross-account or cross-service misuse.
- You SHOULD apply least-privilege IAM for transit gateway administration, avoiding service
  wildcards and FullAccess policies, restricting who can create attachments, modify route tables,
  and change associations or propagations.
- You SHOULD ensure Site-to-Site VPN tunnels use strong encryption (for example AES-256-GCM with IKEv2) and enable tunnel
  logging to CloudWatch Logs with encryption enabled (a KMS key) to protect sensitive connection
  state and IKE negotiation detail from unauthorized access (see the connecting on-premises networks
  reference).
- You MUST treat a misconfigured transit gateway route table as a security risk, since wrong
  associations or propagations can expose workloads across environments meant to stay isolated (see
  the segmenting traffic reference).
- You MUST enable AWS CloudTrail to detect unauthorized changes to transit gateway route tables,
  associations, and propagations, MUST enable encryption at rest on the CloudTrail destination (a KMS
  key), and use AWS Config rules to detect drift from the intended design.

## Additional Resources

- [AWS Transit Gateway Guide](https://docs.aws.amazon.com/vpc/latest/tgw/what-is-transit-gateway.html)
- [AWS Transit Gateway product page](https://aws.amazon.com/transit-gateway/)
- [AWS Transit Gateway pricing](https://aws.amazon.com/transit-gateway/pricing/)

© aws · Apache-2.0 · aws/agent-toolkit-for-aws

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой