[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ADEX2V73ZHAWQJ9JYHGN1R":3,"skill-same:01M7ADEX2V73ZHAWQJ9JYHGN1R":147},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M7ADEX2V73ZHAWQJ9JYHGN1R","transit-gateway-deployer",null,"Provisions production-grade AWS Transit Gateway topologies with secure defaults: TGW creation (Amazon ASN, DNS support, multicast), VPC attachments with subnet selections, TGW route tables (association + propagation), inter-region peering connections, Connect attachments (GRE tunnels for SD-WAN), TGW Network Manager (global network visualization), cross-account sharing via RAM, and AWS Cloud WAN integration. Emits READY_TO_DEPLOY with an ordered CLI plan or PREREQUISITES_MISSING with the specific gap. Use when building hub-and-spoke or mesh topologies, configuring inter-region TGW peering, deploying Connect attachments for SD-WAN appliances, sharing a TGW across accounts via RAM, or migrating to Cloud WAN.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: transit-gateway-deployer\ndescription: 'Provisions production-grade AWS Transit Gateway topologies with secure defaults: TGW creation (Amazon ASN, DNS support, multicast), VPC attachments with subnet selections, TGW route tables (association + propagation), inter-region peering connections, Connect attachments (GRE tunnels for SD-WAN), TGW Network Manager (global network visualization), cross-account sharing via RAM, and AWS Cloud WAN integration. Emits READY_TO_DEPLOY with an ordered CLI plan or PREREQUISITES_MISSING with the specific gap. Use when building hub-and-spoke or mesh topologies, configuring inter-region TGW peering, deploying Connect attachments for SD-WAN appliances, sharing a TGW across accounts via RAM, or migrating to Cloud WAN.'\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan generation. Live deployment uses aws ec2 create-transit-gateway, create-transit-gateway-vpc-attachment, create-transit-gateway-route-table, associate-transit-gateway-route-table, enable-transit-gateway-route-table-propagation, create-transit-gateway-peering-attachment, create-transit-gateway-connect, create-transit-gateway-connect-peer...\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '1'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Networking\n  task_type: deploy\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING\n  when_to_use: Provisioning a new Transit Gateway for hub-and-spoke or mesh topology, configuring VPC attachments with subnet selections, building TGW route tables with association and propagation, deploying inter-region peering connections between regional TGWs, deploying Connect attachments with GRE tunnels for SD-WAN appliances, sharing a TGW across AWS accounts via RAM, configuring multicast domains, integrating with AWS Cloud WAN, or migrating from VPC peering to TGW.\n  activation_triggers: create Transit Gateway, deploy Transit Gateway, TGW hub and spoke, TGW VPC attachment, TGW route table, TGW route propagation, TGW peering connection, inter-region TGW peering, TGW Connect attachment, TGW Connect GRE, SD-WAN Connect attachment, TGW Network Manager, global network TGW, RAM share TGW, cross-account Transit Gateway, TGW multicast domain, AWS Cloud WAN, core network TGW, TGW ASN, TGW DNS support\n  invocation_schema: 'Input (one of): (a) a deployment spec — TGW options (ASN, DNS, multicast, AutoAcceptSharedAttachments), VPC attachments with subnet IDs, route table topology with associations and propagations, optional peering connections, optional Connect attachments with BGP\u002FGRE peer config, optional RAM share principals, optional Cloud WAN integration; (b) a partial spec for interactive refinement; (c) an existing TGW ID for review against the well-architected checklist. Output: TGW_SPEC, VERDICT, ARCHITECTURE, CHECKLIST[], FINDINGS[], DEPLOY_COMMANDS — where VERDICT is READY_TO_DEPLOY or PREREQUISITES_MISSING.'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: Transit Gateway, TGW deploy, TGW creation, Amazon ASN, VPC attachment, subnet selection, TGW route table, route association, route propagation, peering connection, inter-region peering, TGW Connect, GRE tunnel, SD-WAN, Connect attachment, Connect peer, Network Manager, global network, RAM share, cross-account TGW, TGW multicast, multicast domain, AWS Cloud WAN, core network\n  tags: transit-gateway, tgw, networking, deploy, hub-and-spoke, peering, connect-attachment, ram-share, cloud-wan, multicast\n---\n\n# Transit Gateway Deployer\n\n## What this skill does\n\nProvisions production-grade AWS Transit Gateway topologies with\nsecure defaults: TGW creation (Amazon ASN, DNS support, multicast,\nAutoAcceptSharedAttachments), VPC attachments with subnet selections,\nTGW route tables (association + propagation model), inter-region\npeering connections, Connect attachments with GRE tunnels for SD-WAN\nappliances, TGW Network Manager for global topology visualization,\ncross-account sharing via AWS RAM, multicast domains, and AWS Cloud\nWAN integration. Emits a deployment plan with a READY_TO_DEPLOY\nchecklist.\n\n## Mindset\n\n**One-line takeaway:** a Transit Gateway is a **regional,\ncloud-native router** that scales VPC-to-VPC, VPC-to-VPN, and\nVPC-to-on-prem connectivity without the pairwise explosion of VPC\npeering. One TGW per region (typical), attachments plug VPCs and\nremote networks in, and route tables (with association and\npropagation) express the routing policy.\n\nThe three Mindset deep-dive facts moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **Quick reference** | Verdict thresholds + checklist matrix + TGW limits | Before any operation |\n| **Pre-flight** | TGW\u002FVPC\u002Fsubnet gate, RAM, peering, Connect, BGP | Before executing any CLI |\n| **Process** | Per-step: TGW create, VPC attach, route tables, peering, Connect, multicast, Network Manager, RAM, Cloud WAN | When choosing each step |\n| **Common patterns** | Single-region hub-spoke \u002F inter-region peering \u002F SD-WAN Connect \u002F Cloud WAN migration | Boilerplate lookup |\n| **STRICT output contract** | Required TGW\u002FVERDICT\u002FPRE_CHECKS\u002FSTEPS\u002FPOST_VERIFY block | Formatting the response |\n| **NEVER (top 5)** | Hard rules preventing common insecure patterns | Review before deploy |\n| **Expert heuristic** | When to use TGW route tables vs. security group-based segmentation | Choosing segmentation model |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `PREREQUISITES_MISSING` | Any pre-check failed (VPC subnet not in `available` state, subnet AZ scope mismatch across attachments, TGW ASN conflict, route table association\u002Fpropagation conflict, peering attachment not in `available` state in peer region, RAM share `PENDING`\u002F`REJECTED`, Connect peer BGP ASN mismatch, multicast domain member in different TGW, Direct Connect gateway already associated with another TGW, TGW `deleting`\u002F`failed`) | List failures, do NOT execute |\n| `READY_TO_DEPLOY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence with full topology config, wait for operator yes |\n\n**Deployment checklist (every dimension must pass):**\n\n| Dimension | Requirement | Step |\n|---|---|---|\n| TGW ASN | 64512-65535 (private) or specific 4-byte range; unique per TGW peering pair | Step 1 |\n| DNS support | `enableDnsSupport` true (recommended) — allows VPC-resident Route 53 Resolver to be reached via TGW | Step 1 |\n| DNS propagation | `enableDnsPropagation` true (recommended) — DNS hostnames propagate across attachments | Step 1 |\n| Multicast | Disabled by default; enable only with explicit multicast domain plan | Step 1 |\n| AutoAcceptSharedAttachments | `false` for production (recommended) — owner accepts cross-account attachments explicitly | Step 1 |\n| Default route table association | `true` (recommended for simple topology) or `false` (multi-table segmentation) | Step 1 |\n| Default route table propagation | `true` (recommended for simple topology) or `false` (multi-table segmentation) | Step 1 |\n| VPC attachment subnets | One subnet per AZ; subnets must be `available`; minimum \u002F28 | Step 2 |\n| VPC attachment AZ scope | Same AZs across all attachments in a topology for predictable routing | Step 2 |\n| Appliance mode | Disabled by default; enable for firewalls\u002FNVA in-line inspection | Step 2 |\n| Route tables | One per segmentation tier (prod\u002Fnon-prod\u002Fsegment-X) | Step 3 |\n| Associations | Each attachment associated with one route table | Step 3 |\n| Propagations | Each attachment propagates to one or more route tables | Step 3 |\n| Static routes | Added explicitly with `create-transit-gateway-route` (blackhole optional) | Step 3 |\n| Peering | Inter-region or intra-region; peer region TGW exists and `available` | Step 4 |\n| Connect attachment | Backed by a VPC or Direct Connect gateway attachment | Step 5 |\n| Connect peer | BGP ASN and peer GRE address; inside CIDR \u002F29 minimum | Step 5 |\n| Multicast domain | Members in same TGW; IGMP snooping optional | Step 6 |\n| Network Manager | Global network contains TGW for topology view | Step 7 |\n| RAM share | Principal accepted in consumer account before attachment creation | Step 8 |\n| Cloud WAN | Core network attached to TGW via `create-attachment` | Step 9 |\n\nTransit Gateway limits (2026) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Pre-flight: deployment specification gate (run before architecture output)\n\nBefore producing the deployment plan, validate the input specification.\nSeveral requirements **block deployment** — proceeding with an invalid\nspec produces a non-functional or insecure TGW topology.\n\n**Live-account pre-flight checks (skip if doing offline architecture plan):**\n\nThe 7 live-account pre-flight checks moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n| Attribute | Value | Effect on plan |\n|---|---|---|\n| AutoAcceptSharedAttachments | `false` | Owner must explicitly accept each cross-account attachment after creation. Recommended for prod. |\n| DefaultRouteTableAssociation | `true` | New attachments auto-associate to the default route table. Simpler but less isolation. |\n| DefaultRouteTableAssociation | `false` | Owner must explicitly associate each attachment. Required for multi-table segmentation. |\n| ApplianceModeSupport | `enable` | Hairpin traffic through an NVA in a VPC attachment. Required for centralized firewall inspection. |\n| MulticastSupport | `enable` | Enables multicast domains. Cannot be toggled after creation. |\n\n**If the deployment spec is incomplete** (missing VPC IDs, subnet\nlists, or TGW topology), output:\n\n```text\nTGW_SPEC: \u003Cname-or-unknown>\nVERDICT: PREREQUISITES_MISSING\nREASON: Deployment specification is missing required fields (\u003Clist>).\nCannot produce a TGW plan without \u003Cfield> — the resulting deployment\nwould be non-functional or insecure.\nREQUIRED:\n  - tgw_asn (64512-65535 or 4-byte private range)\n  - vpc_attachments (list of {vpc_id, subnet_ids})\n  - route_table_topology (associations + propagations per attachment)\n  - ram_share_principals (cross-account consumer account IDs, optional)\n  - peering_peers \u002F connect_attachments (optional lists)\n```\n\n## Process — Architecture planning (apply in order, produce deployment plan)\n\n### Step 0: Expert knowledge — non-obvious TGW behaviors that change the plan\n\nAll 8 non-obvious TGW behaviors moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n### Step 1: TGW creation — ASN, DNS, multicast, defaults\n\ncreate-transit-gateway CLI moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n| Option | Recommended | Effect |\n|---|---|---|\n| `AmazonSideAsn` | 64512-65535 | Unique per peering pair. Document the ASN allocation across TGWs. |\n| `AutoAcceptSharedAttachments` | `disable` (prod) | Owner accepts cross-account attachments explicitly. |\n| `DefaultRouteTableAssociation` \u002F `Propagation` | `enable` (simple), `disable` (segmented) | Whether new attachments auto-associate \u002F auto-propagate. |\n| `VpnEcmpSupport` | `enable` | Enables ECMP across multiple VPN tunnels for higher throughput. |\n| `DnsSupport` | `enable` | Allows Route 53 Resolver to be reachable across attachments. |\n| `MulticastSupport` | `disable` (default) | Enable only with explicit multicast use case. Cannot be toggled later. |\n| `TransitGatewayCidrBlocks` | (optional) | \u002F24-\u002F29 CIDRs the TGW advertises. Required for private NAT use cases. |\n\n### Step 2: VPC attachments — subnets, AZ scope, appliance mode\n\ncreate-transit-gateway-vpc-attachment CLI moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n| Subnet selection rule | Effect |\n|---|---|\n| One subnet per AZ | TGW places an ENI in each. Avoid multiple subnets per AZ. |\n| AZ set consistent across attachments | Avoids cross-AZ traffic within TGW (cross-AZ charges apply). |\n| Minimum \u002F28 subnet | TGW ENI needs 6+ IPs per subnet. |\n| Appliance mode `enable` for NVAs | Hairpins traffic through a firewall\u002FNVA in a VPC attachment. Required for centralized inspection. |\n\nAppliance-mode deep-dive moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n### Step 3: Route tables — associations and propagations\n\nRoute table create\u002Fassociate\u002Fpropagate\u002Fstatic-route CLIs moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n| Operation | CLI | Effect |\n|---|---|---|\n| Association | `associate-transit-gateway-route-table` | Attachment uses this route table for its own lookups. One per attachment (default + extras). |\n| Propagation | `enable-transit-gateway-route-table-propagation` | Attachment's routes injected INTO the route table. Many per attachment. |\n| Static route | `create-transit-gateway-route` | Explicit CIDR → attachment mapping. Use for default routes, blackholes, summary routes. |\n| Blackhole | `create-transit-gateway-route --blackhole` | Drops traffic to the CIDR. Use for quarantine, segmentation boundaries. |\n\n**Anti-pattern:** NEVER assume association == propagation. An\nattachment associated with route table A but NOT propagating to A\nwill have its own lookups but its routes will NOT appear in A. Set\nboth operations explicitly for multi-table topologies.\n\n### Step 4: Peering connections — inter-region and intra-region\n\nPeering request\u002Faccept CLIs moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n| Peering type | Acceptance model | Bandwidth |\n|---|---|---|\n| Intra-region, same owner | Auto-accepts (owner matches) | Up to 50 Gbps |\n| Intra-region, cross-account | Manual accept required | Up to 50 Gbps |\n| Inter-region (any account) | Manual accept in peer region + RAM visibility | Up to 50 Gbps, AWS backbone transit |\n\nPeering attachments appear in BOTH TGWs. Each TGW must add the\npeering's routes to its route tables (either via propagation or\nstatic routes). Forgetting the reverse-direction propagation is the\nmost common cause of asymmetric routing in inter-region topologies.\n\n### Step 5: Connect attachments — GRE tunnels for SD-WAN\n\nConnect attachment + Connect peer CLIs moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n| Field | Range | Notes |\n|---|---|---|\n| Transport attachment | VPC or Direct Connect gateway | Must be `available` in the same TGW. |\n| Protocol | `gre` (only GRE supported) | Encapsulates the SD-WAN overlay. |\n| PeerAddress | Private IP of SD-WAN appliance | Reachable via the transport attachment. |\n| PeerAsn | 64512-65535 (or 4-byte private) | Must differ from TGW's AmazonSideAsn. |\n| InsideCidr | \u002F29 minimum | Used for BGP peering. 169.254.x.y range typical. |\n\n**BGP routes** advertised by the Connect peer land in the Connect\nattachment's route table as propagated routes. The TGW installs\nthem as routes to the Connect attachment, allowing VPCs to reach\non-prem networks behind the SD-WAN.\n\n**Anti-pattern:** NEVER use Connect as a VPN replacement. Connect\ndoes NOT encrypt — it tunnels GRE over an existing transport. For\nencrypted internet-based transport, use a Site-to-Site VPN\nattachment as the transport for the Connect attachment.\n\n### Step 6: Multicast domains — optional multicast routing\n\nMulticast domain CLIs moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\nMulticast domains enable one-to-many streaming within a TGW (video\nbroadcast, financial market data, gaming backplanes). All members\nmust be in the same TGW. IGMPv2 support optional; static sources\noptional.\n\n### Step 7: TGW Network Manager — global topology visualization\n\nNetwork Manager global-network CLIs moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\nNetwork Manager visualizes the global topology across all registered\nTGWs (and their attachments, peers, and Connect peers) in a single\nconsole view. Requires registering each TGW with the global network.\nCross-account TGWs require the consumer account to register as well\n(via RAM share of the global network).\n\n### Step 8: Cross-account sharing via AWS RAM\n\nRAM share + cross-account attachment CLIs moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n| Step | Account | Action |\n|---|---|---|\n| Share TGW | Owner | `ram create-resource-share` |\n| Accept share | Consumer | `ram accept-resource-share-invitation` |\n| Create VPC attachment | Consumer | `ec2 create-transit-gateway-vpc-attachment` |\n| Accept VPC attachment (if `AutoAcceptSharedAttachments=disable`) | Owner | `ec2 accept-transit-gateway-vpc-attachment` |\n\n### Step 9: AWS Cloud WAN integration (2024+)\n\nCloud WAN core-network + attachment CLIs moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\nCloud WAN provides a policy-driven global network abstraction on top\nof TGWs. The core network policy defines segments (e.g., prod,\nnon-prod, shared-services) and routing rules; Cloud WAN translates\nthe policy into TGW route tables and propagations. Use Cloud WAN\nwhen managing more than ~5 TGWs globally. Existing TGWs can be\nattached non-disruptively; cutover happens by re-associating\nattachments from the original route tables to the Cloud WAN-managed\nones.\n\n## Common patterns\n\nAll six common topology patterns moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n## Output format — MANDATORY literal labels\n\nEvery response MUST begin with the block below — no preamble, no\nconversational opening. The labels are **case-sensitive all-caps\nkeywords** — write them EXACTLY as shown. Do NOT write a preamble.\nStart with `TGW:` and stop after `NOTES:`.\n\n```text\nTGW: \u003Ctgw-name>\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nTARGET: \u003Ctgw-name> (tgw-id: \u003Cid> for updates)\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [FAIL] \u003Ccheck description> — \u003Creason>\nCHECKLIST:\n  TGW_CONFIG:\n    ASN: \u003C64512-65535>\n    DNS support: \u003Cenabled|disabled>\n    Multicast: \u003Cenabled|disabled>\n    AutoAcceptSharedAttachments: \u003Cenabled|disabled>\n  VPC_ATTACHMENTS:\n    - Name: \u003Cname> | VPC: \u003Cvpc-id> | Subnets: \u003Csubnet-id list> | AZs: \u003Caz list> | Appliance mode: \u003Cenabled|disabled>\n  ROUTE_TABLES:\n    - Name: \u003Crtb-name> | Associations: \u003Cattachment-name list> | Propagations: \u003Cattachment-name list>\n  ROUTE_ENTRIES:\n    - Route table: \u003Crtb-name> | Destination: \u003Ccidr> | Target: \u003Cattachment-name|blackhole>\n  RAM_SHARE: \u003Ccount> principals (auto-accept \u003Cenabled|disabled>)\n  NETWORK_MANAGER: \u003Cregistered|not registered> global-network \u003Cid>\n  CLOUD_WAN: \u003Cattached|not attached> core-network \u003Cid>\nSTEPS:\n  1. CONFIRM: About to \u003Coperation> TGW \u003Cname> in account \u003Caccount> region \u003Cregion>. This will \u003Cconsequence>. Estimated monthly cost: \u003C$X>. Proceed? (yes\u002Fno)\n  2. \u003Cexact CLI command — no placeholders>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nNOTES: \u003Csegmentation model, peering direction, cost posture>\n```\n\n**Status marker semantics:**\n- `[PASS]` — check passed.\n- `[FAIL]` — check failed; cite the reason.\n\n**PREREQUISITES_MISSING verdict:** if any pre-check fails, verdict\nis `PREREQUISITES_MISSING` with each gap listed. Do NOT also emit\n`READY_TO_DEPLOY`.\n\n## STRICT output contract\n\n### Required output structure\n\nEvery response MUST begin with the block from \"Output format\" —\nno preamble, no conversational opening. The `TGW:` and `VERDICT:`\nlines are always the first two lines.\n\n### FORBIDDEN output patterns\n\n- **NEVER start with \"Let me analyze…\" or \"I'll create…\"** — the\n  `TGW:` line is always the FIRST line. No conversational preamble.\n- **NEVER use lowercase verdict values** — emit `READY_TO_DEPLOY`\n  or `PREREQUISITES_MISSING` (not `ready`, `prerequisites`).\n- **NEVER omit PRE_CHECKS** — every pre-check run must appear with\n  `[PASS]` or `[FAIL]` and a specific reason for each failure. An\n  empty PRE_CHECKS block is non-compliant.\n- **NEVER conflate route table association with propagation** — emit\n  both as separate ROUTE_TABLES entries. Association = which route\n  table an attachment LOOKS UP routes in; propagation = which route\n  tables an attachment INJECTS its routes into.\n- **NEVER emit a plan with placeholder values** (e.g., `\u003Ctgw-id>`,\n  `\u003Cvpc-id>`) in a READY_TO_DEPLOY plan — every field must be\n  populated with actual values from the input.\n- **NEVER omit the CONFIRM gate** as the first STEPS entry for any\n  state-changing operation.\n- **NEVER deploy cross-account attachments without RAM share steps** —\n  the owner creates the RAM share; the consumer creates the VPC\n  attachment; the owner accepts the attachment (when\n  `AutoAcceptSharedAttachments=false`). Missing either side leaves\n  the attachment in `pendingAcceptance`.\n- **NEVER claim success without verifying each attachment is\n  `available`** via `describe-transit-gateway-vpc-attachments` —\n  attachments in `pendingAcceptance` are non-functional.\n- **NEVER deploy a peering attachment without verifying acceptance\n  in the peer region** — a `pendingAcceptance` peering is\n  non-functional.\n\n### Worked example — TGW with 3 VPC attachments + cross-account RAM sharing\n\n```text\nTGW: prod-tgw-us-east-1\nVERDICT: READY_TO_DEPLOY\nTARGET: prod-tgw-us-east-1 (tgw-id: tgw-0abc123def)\nPRE_CHECKS:\n  - [PASS] TGW ASN 64512 unique within peering pair (peer TGW us-west-2 uses 64513)\n  - [PASS] DNS support enabled, DNS propagation enabled\n  - [PASS] VPC vpc-0app1 subnets subnet-0a1, subnet-0b1, subnet-0c1 all available, \u002F28+\n  - [PASS] VPC vpc-0app2 subnets subnet-0a2, subnet-0b2, subnet-0c2 all available, \u002F28+\n  - [PASS] VPC vpc-shared (account 222222222222) subnets subnet-0x1, subnet-0x2, subnet-0x3 all available, \u002F28+\n  - [PASS] AZ scope us-east-1a\u002Fb\u002Fc consistent across all three VPC attachments\n  - [PASS] RAM share to 222222222222 is ACTIVE and accepted by consumer\n  - [PASS] IAM principal holds ec2:CreateTransitGateway*, AssociateTransitGatewayRouteTable, EnableTransitGatewayRouteTablePropagation, ram:CreateResourceShare\n  - [PASS] AutoAcceptSharedAttachments=false for production topology\nCHECKLIST:\n  TGW_CONFIG:\n    ASN: 64512\n    DNS support: enabled\n    Multicast: disabled\n    AutoAcceptSharedAttachments: disabled\n    Default route table association: disabled\n    Default route table propagation: disabled\n  VPC_ATTACHMENTS:\n    - Name: app1-tgw-attach | VPC: vpc-0app1 | Subnets: subnet-0a1, subnet-0b1, subnet-0c1 | AZs: us-east-1a\u002Fb\u002Fc | Appliance mode: disabled\n    - Name: app2-tgw-attach | VPC: vpc-0app2 | Subnets: subnet-0a2, subnet-0b2, subnet-0c2 | AZs: us-east-1a\u002Fb\u002Fc | Appliance mode: disabled\n    - Name: shared-tgw-attach | VPC: vpc-shared (acct 222222222222) | Subnets: subnet-0x1, subnet-0x2, subnet-0x3 | AZs: us-east-1a\u002Fb\u002Fc | Appliance mode: disabled\n  ROUTE_TABLES:\n    - Name: prod-rtb | Associations: app1-tgw-attach, app2-tgw-attach | Propagations: app1-tgw-attach, app2-tgw-attach, shared-tgw-attach\n    - Name: shared-rtb | Associations: shared-tgw-attach | Propagations: shared-tgw-attach\n  ROUTE_ENTRIES:\n    - Route table: prod-rtb | Destination: 0.0.0.0\u002F0 | Target: shared-tgw-attach\n    - Route table: shared-rtb | Destination: 10.0.0.0\u002F8 | Target: blackhole\n  RAM_SHARE: 1 principal (account 222222222222, auto-accept disabled)\n  NETWORK_MANAGER: registered global-network global-network-0abc\n  CLOUD_WAN: not attached\nSTEPS:\n  1. CONFIRM: About to create TGW prod-tgw-us-east-1 in account 111111111111 region us-east-1. Creates TGW (ASN 64512), 3 VPC attachments (2 in-owner, 1 cross-account via RAM), 2 route tables, 4 propagations, 2 static routes, 1 RAM share to 222222222222. Estimated cost: $36.50\u002Fmo base + $109.50\u002Fmo attachments + $0.02\u002FGB processed. Proceed? (yes\u002Fno)\n  2. aws ec2 create-transit-gateway --description \"prod-tgw-us-east-1\" --options AmazonSideAsn=64512,AutoAcceptSharedAttachments=disable,DefaultRouteTableAssociation=disable,DefaultRouteTablePropagation=disable,VpnEcmpSupport=enable,DnsSupport=enable,MulticastSupport=disable --tag-specifications \"ResourceType=transit-gateway,Tags=[{Key=Name,Value=prod-tgw-us-east-1}]\"\n  3. aws ec2 create-transit-gateway-route-table --transit-gateway-id tgw-0abc123def --tag-specifications \"ResourceType=transit-gateway-route-table,Tags=[{Key=Name,Value=prod-rtb}]\"\n  4. aws ec2 create-transit-gateway-route-table --transit-gateway-id tgw-0abc123def --tag-specifications \"ResourceType=transit-gateway-route-table,Tags=[{Key=Name,Value=shared-rtb}]\"\n  5. aws ec2 create-transit-gateway-vpc-attachment --transit-gateway-id tgw-0abc123def --vpc-id vpc-0app1 --subnet-ids subnet-0a1 subnet-0b1 subnet-0c1 --options ApplianceModeSupport=disable,DnsSupport=enable --tag-specifications \"ResourceType=transit-gateway-attachment,Tags=[{Key=Name,Value=app1-tgw-attach}]\"\n  6. aws ec2 create-transit-gateway-vpc-attachment --transit-gateway-id tgw-0abc123def --vpc-id vpc-0app2 --subnet-ids subnet-0a2 subnet-0b2 subnet-0c2 --options ApplianceModeSupport=disable,DnsSupport=enable --tag-specifications \"ResourceType=transit-gateway-attachment,Tags=[{Key=Name,Value=app2-tgw-attach}]\"\n  7. aws ram create-resource-share --name prod-tgw-share --resource-arns arn:aws:ec2:us-east-1:111111111111:transit-gateway\u002Ftgw-0abc123def --principals 222222222222\n  8. # CONSUMER ACCOUNT 222222222222: aws ram accept-resource-share-invitation --resource-share-invitation-arn \u003Cinvitation-arn>\n  9. # CONSUMER ACCOUNT 222222222222: aws ec2 create-transit-gateway-vpc-attachment --transit-gateway-id tgw-0abc123def --vpc-id vpc-shared --subnet-ids subnet-0x1 subnet-0x2 subnet-0x3 --tag-specifications \"ResourceType=transit-gateway-attachment,Tags=[{Key=Name,Value=shared-tgw-attach}]\"\n  10. # OWNER ACCOUNT 111111111111: aws ec2 accept-transit-gateway-vpc-attachment --transit-gateway-vpc-attachment-id tgw-attach-0shared\n  11. aws ec2 associate-transit-gateway-route-table --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0app1\n  12. aws ec2 associate-transit-gateway-route-table --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0app2\n  13. aws ec2 associate-transit-gateway-route-table --transit-gateway-route-table-id tgw-rtb-0shared --transit-gateway-attachment-id tgw-attach-0shared\n  14. aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0app1\n  15. aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0app2\n  16. aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0shared\n  17. aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id tgw-rtb-0shared --transit-gateway-attachment-id tgw-attach-0shared\n  18. aws ec2 create-transit-gateway-route --transit-gateway-route-table-id tgw-rtb-0prod --destination-cidr-block 0.0.0.0\u002F0 --transit-gateway-attachment-id tgw-attach-0shared --blackhole false\n  19. aws ec2 create-transit-gateway-route --transit-gateway-route-table-id tgw-rtb-0shared --destination-cidr-block 10.0.0.0\u002F8 --blackhole\nPOST_VERIFY:\n  - (pending execution)\n  - describe-transit-gateways returns State=available for tgw-0abc123def\n  - describe-transit-gateway-vpc-attachments returns 3 attachments all State=available (cross-account shared-tgw-attach accepted)\n  - describe-transit-gateway-route-tables returns 2 route tables (prod-rtb, shared-rtb)\n  - prod-rtb has 3 propagations (app1, app2, shared) and 1 static route (0.0.0.0\u002F0 -> shared)\n  - shared-rtb has 1 propagation (shared) and 1 blackhole route (10.0.0.0\u002F8)\n  - EC2 in vpc-0app1 reaches EC2 in vpc-shared and vpc-0app2 (traceroute via TGW)\nNOTES:\n  - Segmentation: prod-rtb for app1+app2; shared-rtb for shared-services VPC (cross-account 222222222222).\n  - Shared reaches prod (propagation enabled to prod-rtb); prod reaches shared (default route 0.0.0.0\u002F0 -> shared-tgw-attach for egress).\n  - Reverse isolation: prod-rtb does NOT propagate to shared-rtb; shared-rtb only sees its own routes plus the 10.0.0.0\u002F8 blackhole.\n  - Cross-account flow: owner (111111111111) shared TGW via RAM -> consumer (222222222222) accepted share -> consumer created VPC attachment -> owner accepted attachment (AutoAcceptSharedAttachments=false).\n  - Cost: $36.50\u002Fmo TGW base + 3 * $0.05\u002Fhr * 730 hr = $109.50\u002Fmo for attachments + ~$0.02\u002FGB processed.\n```\n\n## NEVER (top 5)\n\nThese are the highest-impact, most-frequent failure modes in Transit\nGateway deployments. Violating any one of these is a correctness or\nsecurity regression.\n\n1. **NEVER conflate route table association with propagation.**\n   Association = which route table an attachment LOOKS UP routes in\n   (one per attachment). Propagation = which route tables an\n   attachment INJECTS its routes into (many). Forgetting propagation\n   is the #1 cause of \"I attached the VPC but can't reach it\"\n   outages. Always emit both as separate PRE_CHECKS rows.\n\n2. **NEVER deploy cross-account attachments without verifying the\n   RAM share is `ACTIVE` in the consumer account.** A `PENDING` or\n   `REJECTED` share prevents the consumer from creating the VPC\n   attachment. With `AutoAcceptSharedAttachments=false`, the owner\n   must also `accept` the consumer's attachment after creation.\n\n3. **NEVER enable multicast after TGW creation.** Multicast support\n   is set at `create-transit-gateway` time and cannot be toggled\n   later. If you anticipate multicast in 1-2 years, enable it at\n   creation — the cost is identical.\n\n4. **NEVER use inconsistent AZ scopes across VPC attachments without\n   documenting the cross-AZ traffic impact.** Attachment A in\n   us-east-1a\u002Fb\u002Fc and B in us-east-1a\u002Fb\u002Fd forces cross-AZ traffic\n   between c and d, incurring cross-AZ transfer charges.\n\n5. **NEVER deploy a Connect attachment as a VPN replacement.**\n   Connect rides on top of a VPC or Direct Connect gateway\n   attachment and does NOT encrypt — it tunnels GRE over an existing\n   transport. For internet-based transport, use a Site-to-Site VPN\n   attachment as the transport for the Connect attachment. SD-WAN\n   appliances handle their own encryption; do not assume Connect\n   provides it.\n\n## Expert heuristic: TGW route tables vs. security group segmentation\n\nSegmentation in a TGW topology can be enforced at TWO layers: TGW\nroute tables (network-layer isolation) or VPC security groups\n(instance-layer isolation). The heuristic below resolves which to use.\n\n| Signal | Choose |\n|---|---|\n| Hard isolation between prod and non-prod (audit\u002Fcompliance) | TGW route tables (no propagation between tiers) |\n| Soft segmentation between application tiers within a VPC | Security groups (more flexible) |\n| Many segments (>5) with complex routing policies | TGW route tables (security groups don't scale) |\n| Per-instance or per-subnet access control | Security groups (TGW is per-VPC) |\n| Compliance regime requiring \"air gap\" between environments | TGW route tables with blackhole routes |\n| Cross-account isolation | TGW route tables (security groups are account-scoped) |\n\n**Decision rules:**\n\n- Default to TGW route tables for any topology with 3+ VPCs or\n  multiple segmentation tiers. Use security groups for fine-grained\n  access within a VPC.\n- For \"air gap\" compliance (e.g., PCI scope isolation), use TGW\n  route tables with no cross-tier propagation plus blackhole routes.\n- For Cloud WAN topologies, let Cloud WAN manage the route tables —\n  manual route table changes inside a Cloud WAN-managed TGW will be\n  overwritten by the next policy application.\n- Security groups are always recommended ADDITIONALLY — defense in\n  depth. They do not replace route table segmentation.\n\nALWAYS emit the segmentation model as a PRE_CHECKS row naming the\nroute table topology, the segmentation tiers, and the propagation\ndirections.\n\n## Recent AWS features (2024-2026)\n\nThe 2024-2026 feature timeline moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## AWS documentation\n\n- **AWS Transit Gateway User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc\u002Flatest\u002Ftgw\u002Fwhat-is-transit-gateway.html\n- **TGW route tables** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc\u002Flatest\u002Ftgw\u002Ftgw-route-tables.html\n- **TGW VPC attachments** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc\u002Flatest\u002Ftgw\u002Ftgw-vpc-attachments.html\n- **TGW peering attachments** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc\u002Flatest\u002Ftgw\u002Ftgw-peering.html\n- **TGW Connect attachments** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc\u002Flatest\u002Ftgw\u002Ftgw-connect.html\n- **TGW multicast domains** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc\u002Flatest\u002Ftgw\u002Ftgw-multicast-overview.html\n- **AWS Cloud WAN User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fnetworkmanager\u002Flatest\u002Fcloudwan\u002Fwhat-is-cloudwan.html\n- **TGW API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSEC2\u002Flatest\u002FAPIReference\u002FAmazon_EC2_Transit_Gateways.html\n\n\n## References (load on demand)\n\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — per-step CLI sequences (Steps 1-9) and the six common topology patterns\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Mindset deep-dive facts, Step 0 non-obvious TGW behaviors, 2026 TGW limits, appliance-mode deep-dive, 2024-2026 feature timeline\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — 7 live-account pre-flight checks\n- [references\u002Fcross-account-and-connect-guide.md](references\u002Fcross-account-and-connect-guide.md) — cross-account and Connect detail\n- [references\u002Froute-tables-and-routing.md](references\u002Froute-tables-and-routing.md) — route table and routing detail\n","# Transit Gateway Deployer\n\n## What this skill does\n\nProvisions production-grade AWS Transit Gateway topologies with\nsecure defaults: TGW creation (Amazon ASN, DNS support, multicast,\nAutoAcceptSharedAttachments), VPC attachments with subnet selections,\nTGW route tables (association + propagation model), inter-region\npeering connections, Connect attachments with GRE tunnels for SD-WAN\nappliances, TGW Network Manager for global topology visualization,\ncross-account sharing via AWS RAM, multicast domains, and AWS Cloud\nWAN integration. Emits a deployment plan with a READY_TO_DEPLOY\nchecklist.\n\n## Mindset\n\n**One-line takeaway:** a Transit Gateway is a **regional,\ncloud-native router** that scales VPC-to-VPC, VPC-to-VPN, and\nVPC-to-on-prem connectivity without the pairwise explosion of VPC\npeering. One TGW per region (typical), attachments plug VPCs and\nremote networks in, and route tables (with association and\npropagation) express the routing policy.\n\nThe three Mindset deep-dive facts moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **Quick reference** | Verdict thresholds + checklist matrix + TGW limits | Before any operation |\n| **Pre-flight** | TGW\u002FVPC\u002Fsubnet gate, RAM, peering, Connect, BGP | Before executing any CLI |\n| **Process** | Per-step: TGW create, VPC attach, route tables, peering, Connect, multicast, Network Manager, RAM, Cloud WAN | When choosing each step |\n| **Common patterns** | Single-region hub-spoke \u002F inter-region peering \u002F SD-WAN Connect \u002F Cloud WAN migration | Boilerplate lookup |\n| **STRICT output contract** | Required TGW\u002FVERDICT\u002FPRE_CHECKS\u002FSTEPS\u002FPOST_VERIFY block | Formatting the response |\n| **NEVER (top 5)** | Hard rules preventing common insecure patterns | Review before deploy |\n| **Expert heuristic** | When to use TGW route tables vs. security group-based segmentation | Choosing segmentation model |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `PREREQUISITES_MISSING` | Any pre-check failed (VPC subnet not in `available` state, subnet AZ scope mismatch across attachments, TGW ASN conflict, route table association\u002Fpropagation conflict, peering attachment not in `available` state in peer region, RAM share `PENDING`\u002F`REJECTED`, Connect peer BGP ASN mismatch, multicast domain member in different TGW, Direct Connect gateway already associated with another TGW, TGW `deleting`\u002F`failed`) | List failures, do NOT execute |\n| `READY_TO_DEPLOY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence with full topology config, wait for operator yes |\n\n**Deployment checklist (every dimension must pass):**\n\n| Dimension | Requirement | Step |\n|---|---|---|\n| TGW ASN | 64512-65535 (private) or specific 4-byte range; unique per TGW peering pair | Step 1 |\n| DNS support | `enableDnsSupport` true (recommended) — allows VPC-resident Route 53 Resolver to be reached via TGW | Step 1 |\n| DNS propagation | `enableDnsPropagation` true (recommended) — DNS hostnames propagate across attachments | Step 1 |\n| Multicast | Disabled by default; enable only with explicit multicast domain plan | Step 1 |\n| AutoAcceptSharedAttachments | `false` for production (recommended) — owner accepts cross-account attachments explicitly | Step 1 |\n| Default route table association | `true` (recommended for simple topology) or `false` (multi-table segmentation) | Step 1 |\n| Default route table propagation | `true` (recommended for simple topology) or `false` (multi-table segmentation) | Step 1 |\n| VPC attachment subnets | One subnet per AZ; subnets must be `available`; minimum \u002F28 | Step 2 |\n| VPC attachment AZ scope | Same AZs across all attachments in a topology for predictable routing | Step 2 |\n| Appliance mode | Disabled by default; enable for firewalls\u002FNVA in-line inspection | Step 2 |\n| Route tables | One per segmentation tier (prod\u002Fnon-prod\u002Fsegment-X) | Step 3 |\n| Associations | Each attachment associated with one route table | Step 3 |\n| Propagations | Each attachment propagates to one or more route tables | Step 3 |\n| Static routes | Added explicitly with `create-transit-gateway-route` (blackhole optional) | Step 3 |\n| Peering | Inter-region or intra-region; peer region TGW exists and `available` | Step 4 |\n| Connect attachment | Backed by a VPC or Direct Connect gateway attachment | Step 5 |\n| Connect peer | BGP ASN and peer GRE address; inside CIDR \u002F29 minimum | Step 5 |\n| Multicast domain | Members in same TGW; IGMP snooping optional | Step 6 |\n| Network Manager | Global network contains TGW for topology view | Step 7 |\n| RAM share | Principal accepted in consumer account before attachment creation | Step 8 |\n| Cloud WAN | Core network attached to TGW via `create-attachment` | Step 9 |\n\nTransit Gateway limits (2026) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Pre-flight: deployment specification gate (run before architecture output)\n\nBefore producing the deployment plan, validate the input specification.\nSeveral requirements **block deployment** — proceeding with an invalid\nspec produces a non-functional or insecure TGW topology.\n\n**Live-account pre-flight checks (skip if doing offline architecture plan):**\n\nThe 7 live-account pre-flight checks moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n| Attribute | Value | Effect on plan |\n|---|---|---|\n| AutoAcceptSharedAttachments | `false` | Owner must explicitly accept each cross-account attachment after creation. Recommended for prod. |\n| DefaultRouteTableAssociation | `true` | New attachments auto-associate to the default route table. Simpler but less isolation. |\n| DefaultRouteTableAssociation | `false` | Owner must explicitly associate each attachment. Required for multi-table segmentation. |\n| ApplianceModeSupport | `enable` | Hairpin traffic through an NVA in a VPC attachment. Required for centralized firewall inspection. |\n| MulticastSupport | `enable` | Enables multicast domains. Cannot be toggled after creation. |\n\n**If the deployment spec is incomplete** (missing VPC IDs, subnet\nlists, or TGW topology), output:\n\n```text\nTGW_SPEC: \u003Cname-or-unknown>\nVERDICT: PREREQUISITES_MISSING\nREASON: Deployment specification is missing required fields (\u003Clist>).\nCannot produce a TGW plan without \u003Cfield> — the resulting deployment\nwould be non-functional or insecure.\nREQUIRED:\n  - tgw_asn (64512-65535 or 4-byte private range)\n  - vpc_attachments (list of {vpc_id, subnet_ids})\n  - route_table_topology (associations + propagations per attachment)\n  - ram_share_principals (cross-account consumer account IDs, optional)\n  - peering_peers \u002F connect_attachments (optional lists)\n```\n\n## Process — Architecture planning (apply in order, produce deployment plan)\n\n### Step 0: Expert knowledge — non-obvious TGW behaviors that change the plan\n\nAll 8 non-obvious TGW behaviors moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n### Step 1: TGW creation — ASN, DNS, multicast, defaults\n\ncreate-transit-gateway CLI moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n| Option | Recommended | Effect |\n|---|---|---|\n| `AmazonSideAsn` | 64512-65535 | Unique per peering pair. Document the ASN allocation across TGWs. |\n| `AutoAcceptSharedAttachments` | `disable` (prod) | Owner accepts cross-account attachments explicitly. |\n| `DefaultRouteTableAssociation` \u002F `Propagation` | `enable` (simple), `disable` (segmented) | Whether new attachments auto-associate \u002F auto-propagate. |\n| `VpnEcmpSupport` | `enable` | Enables ECMP across multiple VPN tunnels for higher throughput. |\n| `DnsSupport` | `enable` | Allows Route 53 Resolver to be reachable across attachments. |\n| `MulticastSupport` | `disable` (default) | Enable only with explicit multicast use case. Cannot be toggled later. |\n| `TransitGatewayCidrBlocks` | (optional) | \u002F24-\u002F29 CIDRs the TGW advertises. Required for private NAT use cases. |\n\n### Step 2: VPC attachments — subnets, AZ scope, appliance mode\n\ncreate-transit-gateway-vpc-attachment CLI moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n| Subnet selection rule | Effect |\n|---|---|\n| One subnet per AZ | TGW places an ENI in each. Avoid multiple subnets per AZ. |\n| AZ set consistent across attachments | Avoids cross-AZ traffic within TGW (cross-AZ charges apply). |\n| Minimum \u002F28 subnet | TGW ENI needs 6+ IPs per subnet. |\n| Appliance mode `enable` for NVAs | Hairpins traffic through a firewall\u002FNVA in a VPC attachment. Required for centralized inspection. |\n\nAppliance-mode deep-dive moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n### Step 3: Route tables — associations and propagations\n\nRoute table create\u002Fassociate\u002Fpropagate\u002Fstatic-route CLIs moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n| Operation | CLI | Effect |\n|---|---|---|\n| Association | `associate-transit-gateway-route-table` | Attachment uses this route table for its own lookups. One per attachment (default + extras). |\n| Propagation | `enable-transit-gateway-route-table-propagation` | Attachment's routes injected INTO the route table. Many per attachment. |\n| Static route | `create-transit-gateway-route` | Explicit CIDR → attachment mapping. Use for default routes, blackholes, summary routes. |\n| Blackhole | `create-transit-gateway-route --blackhole` | Drops traffic to the CIDR. Use for quarantine, segmentation boundaries. |\n\n**Anti-pattern:** NEVER assume association == propagation. An\nattachment associated with route table A but NOT propagating to A\nwill have its own lookups but its routes will NOT appear in A. Set\nboth operations explicitly for multi-table topologies.\n\n### Step 4: Peering connections — inter-region and intra-region\n\nPeering request\u002Faccept CLIs moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n| Peering type | Acceptance model | Bandwidth |\n|---|---|---|\n| Intra-region, same owner | Auto-accepts (owner matches) | Up to 50 Gbps |\n| Intra-region, cross-account | Manual accept required | Up to 50 Gbps |\n| Inter-region (any account) | Manual accept in peer region + RAM visibility | Up to 50 Gbps, AWS backbone transit |\n\nPeering attachments appear in BOTH TGWs. Each TGW must add the\npeering's routes to its route tables (either via propagation or\nstatic routes). Forgetting the reverse-direction propagation is the\nmost common cause of asymmetric routing in inter-region topologies.\n\n### Step 5: Connect attachments — GRE tunnels for SD-WAN\n\nConnect attachment + Connect peer CLIs moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n| Field | Range | Notes |\n|---|---|---|\n| Transport attachment | VPC or Direct Connect gateway | Must be `available` in the same TGW. |\n| Protocol | `gre` (only GRE supported) | Encapsulates the SD-WAN overlay. |\n| PeerAddress | Private IP of SD-WAN appliance | Reachable via the transport attachment. |\n| PeerAsn | 64512-65535 (or 4-byte private) | Must differ from TGW's AmazonSideAsn. |\n| InsideCidr | \u002F29 minimum | Used for BGP peering. 169.254.x.y range typical. |\n\n**BGP routes** advertised by the Connect peer land in the Connect\nattachment's route table as propagated routes. The TGW installs\nthem as routes to the Connect attachment, allowing VPCs to reach\non-prem networks behind the SD-WAN.\n\n**Anti-pattern:** NEVER use Connect as a VPN replacement. Connect\ndoes NOT encrypt — it tunnels GRE over an existing transport. For\nencrypted internet-based transport, use a Site-to-Site VPN\nattachment as the transport for the Connect attachment.\n\n### Step 6: Multicast domains — optional multicast routing\n\nMulticast domain CLIs moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\nMulticast domains enable one-to-many streaming within a TGW (video\nbroadcast, financial market data, gaming backplanes). All members\nmust be in the same TGW. IGMPv2 support optional; static sources\noptional.\n\n### Step 7: TGW Network Manager — global topology visualization\n\nNetwork Manager global-network CLIs moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\nNetwork Manager visualizes the global topology across all registered\nTGWs (and their attachments, peers, and Connect peers) in a single\nconsole view. Requires registering each TGW with the global network.\nCross-account TGWs require the consumer account to register as well\n(via RAM share of the global network).\n\n### Step 8: Cross-account sharing via AWS RAM\n\nRAM share + cross-account attachment CLIs moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n| Step | Account | Action |\n|---|---|---|\n| Share TGW | Owner | `ram create-resource-share` |\n| Accept share | Consumer | `ram accept-resource-share-invitation` |\n| Create VPC attachment | Consumer | `ec2 create-transit-gateway-vpc-attachment` |\n| Accept VPC attachment (if `AutoAcceptSharedAttachments=disable`) | Owner | `ec2 accept-transit-gateway-vpc-attachment` |\n\n### Step 9: AWS Cloud WAN integration (2024+)\n\nCloud WAN core-network + attachment CLIs moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\nCloud WAN provides a policy-driven global network abstraction on top\nof TGWs. The core network policy defines segments (e.g., prod,\nnon-prod, shared-services) and routing rules; Cloud WAN translates\nthe policy into TGW route tables and propagations. Use Cloud WAN\nwhen managing more than ~5 TGWs globally. Existing TGWs can be\nattached non-disruptively; cutover happens by re-associating\nattachments from the original route tables to the Cloud WAN-managed\nones.\n\n## Common patterns\n\nAll six common topology patterns moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n## Output format — MANDATORY literal labels\n\nEvery response MUST begin with the block below — no preamble, no\nconversational opening. The labels are **case-sensitive all-caps\nkeywords** — write them EXACTLY as shown. Do NOT write a preamble.\nStart with `TGW:` and stop after `NOTES:`.\n\n```text\nTGW: \u003Ctgw-name>\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nTARGET: \u003Ctgw-name> (tgw-id: \u003Cid> for updates)\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [FAIL] \u003Ccheck description> — \u003Creason>\nCHECKLIST:\n  TGW_CONFIG:\n    ASN: \u003C64512-65535>\n    DNS support: \u003Cenabled|disabled>\n    Multicast: \u003Cenabled|disabled>\n    AutoAcceptSharedAttachments: \u003Cenabled|disabled>\n  VPC_ATTACHMENTS:\n    - Name: \u003Cname> | VPC: \u003Cvpc-id> | Subnets: \u003Csubnet-id list> | AZs: \u003Caz list> | Appliance mode: \u003Cenabled|disabled>\n  ROUTE_TABLES:\n    - Name: \u003Crtb-name> | Associations: \u003Cattachment-name list> | Propagations: \u003Cattachment-name list>\n  ROUTE_ENTRIES:\n    - Route table: \u003Crtb-name> | Destination: \u003Ccidr> | Target: \u003Cattachment-name|blackhole>\n  RAM_SHARE: \u003Ccount> principals (auto-accept \u003Cenabled|disabled>)\n  NETWORK_MANAGER: \u003Cregistered|not registered> global-network \u003Cid>\n  CLOUD_WAN: \u003Cattached|not attached> core-network \u003Cid>\nSTEPS:\n  1. CONFIRM: About to \u003Coperation> TGW \u003Cname> in account \u003Caccount> region \u003Cregion>. This will \u003Cconsequence>. Estimated monthly cost: \u003C$X>. Proceed? (yes\u002Fno)\n  2. \u003Cexact CLI command — no placeholders>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nNOTES: \u003Csegmentation model, peering direction, cost posture>\n```\n\n**Status marker semantics:**\n- `[PASS]` — check passed.\n- `[FAIL]` — check failed; cite the reason.\n\n**PREREQUISITES_MISSING verdict:** if any pre-check fails, verdict\nis `PREREQUISITES_MISSING` with each gap listed. Do NOT also emit\n`READY_TO_DEPLOY`.\n\n## STRICT output contract\n\n### Required output structure\n\nEvery response MUST begin with the block from \"Output format\" —\nno preamble, no conversational opening. The `TGW:` and `VERDICT:`\nlines are always the first two lines.\n\n### FORBIDDEN output patterns\n\n- **NEVER start with \"Let me analyze…\" or \"I'll create…\"** — the\n  `TGW:` line is always the FIRST line. No conversational preamble.\n- **NEVER use lowercase verdict values** — emit `READY_TO_DEPLOY`\n  or `PREREQUISITES_MISSING` (not `ready`, `prerequisites`).\n- **NEVER omit PRE_CHECKS** — every pre-check run must appear with\n  `[PASS]` or `[FAIL]` and a specific reason for each failure. An\n  empty PRE_CHECKS block is non-compliant.\n- **NEVER conflate route table association with propagation** — emit\n  both as separate ROUTE_TABLES entries. Association = which route\n  table an attachment LOOKS UP routes in; propagation = which route\n  tables an attachment INJECTS its routes into.\n- **NEVER emit a plan with placeholder values** (e.g., `\u003Ctgw-id>`,\n  `\u003Cvpc-id>`) in a READY_TO_DEPLOY plan — every field must be\n  populated with actual values from the input.\n- **NEVER omit the CONFIRM gate** as the first STEPS entry for any\n  state-changing operation.\n- **NEVER deploy cross-account attachments without RAM share steps** —\n  the owner creates the RAM share; the consumer creates the VPC\n  attachment; the owner accepts the attachment (when\n  `AutoAcceptSharedAttachments=false`). Missing either side leaves\n  the attachment in `pendingAcceptance`.\n- **NEVER claim success without verifying each attachment is\n  `available`** via `describe-transit-gateway-vpc-attachments` —\n  attachments in `pendingAcceptance` are non-functional.\n- **NEVER deploy a peering attachment without verifying acceptance\n  in the peer region** — a `pendingAcceptance` peering is\n  non-functional.\n\n### Worked example — TGW with 3 VPC attachments + cross-account RAM sharing\n\n```text\nTGW: prod-tgw-us-east-1\nVERDICT: READY_TO_DEPLOY\nTARGET: prod-tgw-us-east-1 (tgw-id: tgw-0abc123def)\nPRE_CHECKS:\n  - [PASS] TGW ASN 64512 unique within peering pair (peer TGW us-west-2 uses 64513)\n  - [PASS] DNS support enabled, DNS propagation enabled\n  - [PASS] VPC vpc-0app1 subnets subnet-0a1, subnet-0b1, subnet-0c1 all available, \u002F28+\n  - [PASS] VPC vpc-0app2 subnets subnet-0a2, subnet-0b2, subnet-0c2 all available, \u002F28+\n  - [PASS] VPC vpc-shared (account 222222222222) subnets subnet-0x1, subnet-0x2, subnet-0x3 all available, \u002F28+\n  - [PASS] AZ scope us-east-1a\u002Fb\u002Fc consistent across all three VPC attachments\n  - [PASS] RAM share to 222222222222 is ACTIVE and accepted by consumer\n  - [PASS] IAM principal holds ec2:CreateTransitGateway*, AssociateTransitGatewayRouteTable, EnableTransitGatewayRouteTablePropagation, ram:CreateResourceShare\n  - [PASS] AutoAcceptSharedAttachments=false for production topology\nCHECKLIST:\n  TGW_CONFIG:\n    ASN: 64512\n    DNS support: enabled\n    Multicast: disabled\n    AutoAcceptSharedAttachments: disabled\n    Default route table association: disabled\n    Default route table propagation: disabled\n  VPC_ATTACHMENTS:\n    - Name: app1-tgw-attach | VPC: vpc-0app1 | Subnets: subnet-0a1, subnet-0b1, subnet-0c1 | AZs: us-east-1a\u002Fb\u002Fc | Appliance mode: disabled\n    - Name: app2-tgw-attach | VPC: vpc-0app2 | Subnets: subnet-0a2, subnet-0b2, subnet-0c2 | AZs: us-east-1a\u002Fb\u002Fc | Appliance mode: disabled\n    - Name: shared-tgw-attach | VPC: vpc-shared (acct 222222222222) | Subnets: subnet-0x1, subnet-0x2, subnet-0x3 | AZs: us-east-1a\u002Fb\u002Fc | Appliance mode: disabled\n  ROUTE_TABLES:\n    - Name: prod-rtb | Associations: app1-tgw-attach, app2-tgw-attach | Propagations: app1-tgw-attach, app2-tgw-attach, shared-tgw-attach\n    - Name: shared-rtb | Associations: shared-tgw-attach | Propagations: shared-tgw-attach\n  ROUTE_ENTRIES:\n    - Route table: prod-rtb | Destination: 0.0.0.0\u002F0 | Target: shared-tgw-attach\n    - Route table: shared-rtb | Destination: 10.0.0.0\u002F8 | Target: blackhole\n  RAM_SHARE: 1 principal (account 222222222222, auto-accept disabled)\n  NETWORK_MANAGER: registered global-network global-network-0abc\n  CLOUD_WAN: not attached\nSTEPS:\n  1. CONFIRM: About to create TGW prod-tgw-us-east-1 in account 111111111111 region us-east-1. Creates TGW (ASN 64512), 3 VPC attachments (2 in-owner, 1 cross-account via RAM), 2 route tables, 4 propagations, 2 static routes, 1 RAM share to 222222222222. Estimated cost: $36.50\u002Fmo base + $109.50\u002Fmo attachments + $0.02\u002FGB processed. Proceed? (yes\u002Fno)\n  2. aws ec2 create-transit-gateway --description \"prod-tgw-us-east-1\" --options AmazonSideAsn=64512,AutoAcceptSharedAttachments=disable,DefaultRouteTableAssociation=disable,DefaultRouteTablePropagation=disable,VpnEcmpSupport=enable,DnsSupport=enable,MulticastSupport=disable --tag-specifications \"ResourceType=transit-gateway,Tags=[{Key=Name,Value=prod-tgw-us-east-1}]\"\n  3. aws ec2 create-transit-gateway-route-table --transit-gateway-id tgw-0abc123def --tag-specifications \"ResourceType=transit-gateway-route-table,Tags=[{Key=Name,Value=prod-rtb}]\"\n  4. aws ec2 create-transit-gateway-route-table --transit-gateway-id tgw-0abc123def --tag-specifications \"ResourceType=transit-gateway-route-table,Tags=[{Key=Name,Value=shared-rtb}]\"\n  5. aws ec2 create-transit-gateway-vpc-attachment --transit-gateway-id tgw-0abc123def --vpc-id vpc-0app1 --subnet-ids subnet-0a1 subnet-0b1 subnet-0c1 --options ApplianceModeSupport=disable,DnsSupport=enable --tag-specifications \"ResourceType=transit-gateway-attachment,Tags=[{Key=Name,Value=app1-tgw-attach}]\"\n  6. aws ec2 create-transit-gateway-vpc-attachment --transit-gateway-id tgw-0abc123def --vpc-id vpc-0app2 --subnet-ids subnet-0a2 subnet-0b2 subnet-0c2 --options ApplianceModeSupport=disable,DnsSupport=enable --tag-specifications \"ResourceType=transit-gateway-attachment,Tags=[{Key=Name,Value=app2-tgw-attach}]\"\n  7. aws ram create-resource-share --name prod-tgw-share --resource-arns arn:aws:ec2:us-east-1:111111111111:transit-gateway\u002Ftgw-0abc123def --principals 222222222222\n  8. # CONSUMER ACCOUNT 222222222222: aws ram accept-resource-share-invitation --resource-share-invitation-arn \u003Cinvitation-arn>\n  9. # CONSUMER ACCOUNT 222222222222: aws ec2 create-transit-gateway-vpc-attachment --transit-gateway-id tgw-0abc123def --vpc-id vpc-shared --subnet-ids subnet-0x1 subnet-0x2 subnet-0x3 --tag-specifications \"ResourceType=transit-gateway-attachment,Tags=[{Key=Name,Value=shared-tgw-attach}]\"\n  10. # OWNER ACCOUNT 111111111111: aws ec2 accept-transit-gateway-vpc-attachment --transit-gateway-vpc-attachment-id tgw-attach-0shared\n  11. aws ec2 associate-transit-gateway-route-table --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0app1\n  12. aws ec2 associate-transit-gateway-route-table --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0app2\n  13. aws ec2 associate-transit-gateway-route-table --transit-gateway-route-table-id tgw-rtb-0shared --transit-gateway-attachment-id tgw-attach-0shared\n  14. aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0app1\n  15. aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0app2\n  16. aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0shared\n  17. aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id tgw-rtb-0shared --transit-gateway-attachment-id tgw-attach-0shared\n  18. aws ec2 create-transit-gateway-route --transit-gateway-route-table-id tgw-rtb-0prod --destination-cidr-block 0.0.0.0\u002F0 --transit-gateway-attachment-id tgw-attach-0shared --blackhole false\n  19. aws ec2 create-transit-gateway-route --transit-gateway-route-table-id tgw-rtb-0shared --destination-cidr-block 10.0.0.0\u002F8 --blackhole\nPOST_VERIFY:\n  - (pending execution)\n  - describe-transit-gateways returns State=available for tgw-0abc123def\n  - describe-transit-gateway-vpc-attachments returns 3 attachments all State=available (cross-account shared-tgw-attach accepted)\n  - describe-transit-gateway-route-tables returns 2 route tables (prod-rtb, shared-rtb)\n  - prod-rtb has 3 propagations (app1, app2, shared) and 1 static route (0.0.0.0\u002F0 -> shared)\n  - shared-rtb has 1 propagation (shared) and 1 blackhole route (10.0.0.0\u002F8)\n  - EC2 in vpc-0app1 reaches EC2 in vpc-shared and vpc-0app2 (traceroute via TGW)\nNOTES:\n  - Segmentation: prod-rtb for app1+app2; shared-rtb for shared-services VPC (cross-account 222222222222).\n  - Shared reaches prod (propagation enabled to prod-rtb); prod reaches shared (default route 0.0.0.0\u002F0 -> shared-tgw-attach for egress).\n  - Reverse isolation: prod-rtb does NOT propagate to shared-rtb; shared-rtb only sees its own routes plus the 10.0.0.0\u002F8 blackhole.\n  - Cross-account flow: owner (111111111111) shared TGW via RAM -> consumer (222222222222) accepted share -> consumer created VPC attachment -> owner accepted attachment (AutoAcceptSharedAttachments=false).\n  - Cost: $36.50\u002Fmo TGW base + 3 * $0.05\u002Fhr * 730 hr = $109.50\u002Fmo for attachments + ~$0.02\u002FGB processed.\n```\n\n## NEVER (top 5)\n\nThese are the highest-impact, most-frequent failure modes in Transit\nGateway deployments. Violating any one of these is a correctness or\nsecurity regression.\n\n1. **NEVER conflate route table association with propagation.**\n   Association = which route table an attachment LOOKS UP routes in\n   (one per attachment). Propagation = which route tables an\n   attachment INJECTS its routes into (many). Forgetting propagation\n   is the #1 cause of \"I attached the VPC but can't reach it\"\n   outages. Always emit both as separate PRE_CHECKS rows.\n\n2. **NEVER deploy cross-account attachments without verifying the\n   RAM share is `ACTIVE` in the consumer account.** A `PENDING` or\n   `REJECTED` share prevents the consumer from creating the VPC\n   attachment. With `AutoAcceptSharedAttachments=false`, the owner\n   must also `accept` the consumer's attachment after creation.\n\n3. **NEVER enable multicast after TGW creation.** Multicast support\n   is set at `create-transit-gateway` time and cannot be toggled\n   later. If you anticipate multicast in 1-2 years, enable it at\n   creation — the cost is identical.\n\n4. **NEVER use inconsistent AZ scopes across VPC attachments without\n   documenting the cross-AZ traffic impact.** Attachment A in\n   us-east-1a\u002Fb\u002Fc and B in us-east-1a\u002Fb\u002Fd forces cross-AZ traffic\n   between c and d, incurring cross-AZ transfer charges.\n\n5. **NEVER deploy a Connect attachment as a VPN replacement.**\n   Connect rides on top of a VPC or Direct Connect gateway\n   attachment and does NOT encrypt — it tunnels GRE over an existing\n   transport. For internet-based transport, use a Site-to-Site VPN\n   attachment as the transport for the Connect attachment. SD-WAN\n   appliances handle their own encryption; do not assume Connect\n   provides it.\n\n## Expert heuristic: TGW route tables vs. security group segmentation\n\nSegmentation in a TGW topology can be enforced at TWO layers: TGW\nroute tables (network-layer isolation) or VPC security groups\n(instance-layer isolation). The heuristic below resolves which to use.\n\n| Signal | Choose |\n|---|---|\n| Hard isolation between prod and non-prod (audit\u002Fcompliance) | TGW route tables (no propagation between tiers) |\n| Soft segmentation between application tiers within a VPC | Security groups (more flexible) |\n| Many segments (>5) with complex routing policies | TGW route tables (security groups don't scale) |\n| Per-instance or per-subnet access control | Security groups (TGW is per-VPC) |\n| Compliance regime requiring \"air gap\" between environments | TGW route tables with blackhole routes |\n| Cross-account isolation | TGW route tables (security groups are account-scoped) |\n\n**Decision rules:**\n\n- Default to TGW route tables for any topology with 3+ VPCs or\n  multiple segmentation tiers. Use security groups for fine-grained\n  access within a VPC.\n- For \"air gap\" compliance (e.g., PCI scope isolation), use TGW\n  route tables with no cross-tier propagation plus blackhole routes.\n- For Cloud WAN topologies, let Cloud WAN manage the route tables —\n  manual route table changes inside a Cloud WAN-managed TGW will be\n  overwritten by the next policy application.\n- Security groups are always recommended ADDITIONALLY — defense in\n  depth. They do not replace route table segmentation.\n\nALWAYS emit the segmentation model as a PRE_CHECKS row naming the\nroute table topology, the segmentation tiers, and the propagation\ndirections.\n\n## Recent AWS features (2024-2026)\n\nThe 2024-2026 feature timeline moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## AWS documentation\n\n- **AWS Transit Gateway User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc\u002Flatest\u002Ftgw\u002Fwhat-is-transit-gateway.html\n- **TGW route tables** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc\u002Flatest\u002Ftgw\u002Ftgw-route-tables.html\n- **TGW VPC attachments** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc\u002Flatest\u002Ftgw\u002Ftgw-vpc-attachments.html\n- **TGW peering attachments** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc\u002Flatest\u002Ftgw\u002Ftgw-peering.html\n- **TGW Connect attachments** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc\u002Flatest\u002Ftgw\u002Ftgw-connect.html\n- **TGW multicast domains** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc\u002Flatest\u002Ftgw\u002Ftgw-multicast-overview.html\n- **AWS Cloud WAN User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fnetworkmanager\u002Flatest\u002Fcloudwan\u002Fwhat-is-cloudwan.html\n- **TGW API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSEC2\u002Flatest\u002FAPIReference\u002FAmazon_EC2_Transit_Gateways.html\n\n\n## References (load on demand)\n\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — per-step CLI sequences (Steps 1-9) and the six common topology patterns\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Mindset deep-dive facts, Step 0 non-obvious TGW behaviors, 2026 TGW limits, appliance-mode deep-dive, 2024-2026 feature timeline\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — 7 live-account pre-flight checks\n- [references\u002Fcross-account-and-connect-guide.md](references\u002Fcross-account-and-connect-guide.md) — cross-account and Connect detail\n- [references\u002Froute-tables-and-routing.md](references\u002Froute-tables-and-routing.md) — route table and routing detail\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":42},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"requires_llm":37,"verdict_shape":38,"lifecycle_status":39,"invocation_schema":40,"supports_pipeline":37,"activation_triggers":41},"transit-gateway, tgw, networking, deploy, hub-and-spoke, peering, connect-attachment, ram-share, cloud-wan, multicast","1","Jacky Chan — AWS Community Builder","aws-cloudops","Networking","0.1.0","Transit Gateway, TGW deploy, TGW creation, Amazon ASN, VPC attachment, subnet selection, TGW route table, route association, route propagation, peering connection, inter-region peering, TGW Connect, GRE tunnel, SD-WAN, Connect attachment, Connect peer, Network Manager, global network, RAM share, cross-account TGW, TGW multicast, multicast domain, AWS Cloud WAN, core network","deploy","high","false","capability","Provisioning a new Transit Gateway for hub-and-spoke or mesh topology, configuring VPC attachments with subnet selections, building TGW route tables with association and propagation, deploying inter-region peering connections between regional TGWs, deploying Connect attachments with GRE tunnels for SD-WAN appliances, sharing a TGW across AWS accounts via RAM, configuring multicast domains, integrating with AWS Cloud WAN, or migrating from VPC peering to TGW.","true","READY_TO_DEPLOY | PREREQUISITES_MISSING","active","Input (one of): (a) a deployment spec — TGW options (ASN, DNS, multicast, AutoAcceptSharedAttachments), VPC attachments with subnet IDs, route table topology with associations and propagations, optional peering connections, optional Connect attachments with BGP\u002FGRE peer config, optional RAM share principals, optional Cloud WAN integration; (b) a partial spec for interactive refinement; (c) an existing TGW ID for review against the well-architected checklist. Output: TGW_SPEC, VERDICT, ARCHITECTURE, CHECKLIST[], FINDINGS[], DEPLOY_COMMANDS — where VERDICT is READY_TO_DEPLOY or PREREQUISITES_MISSING.","create Transit Gateway, deploy Transit Gateway, TGW hub and spoke, TGW VPC attachment, TGW route table, TGW route propagation, TGW peering connection, inter-region TGW peering, TGW Connect attachment, TGW Connect GRE, SD-WAN Connect attachment, TGW Network Manager, global network TGW, RAM share TGW, cross-account Transit Gateway, TGW multicast domain, AWS Cloud WAN, core network TGW, TGW ASN, TGW DNS support","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan generation. Live deployment uses aws ec2 create-transit-gateway, create-transit-gateway-vpc-attachment, create-transit-gateway-route-table, associate-transit-gateway-route-table, enable-transit-gateway-route-table-propagation, create-transit-gateway-peering-attachment, create-transit-gateway-connect, create-transit-gateway-connect-peer...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Ftransit-gateway-deployer",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill transit-gateway-deployer",{"tool":57,"command":58},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill transit-gateway-deployer",{"tool":60,"command":61},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill transit-gateway-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002FSKILL.md",true,[65,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",7530,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Feval\u002Ftest-cases.yaml",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fbaselines\u002Fcloud-wan-integration-migration.md",1308,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Fevals\u002Fbaselines\u002Fcloud-wan-integration-migration.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fbaselines\u002Fconnect-sdwan-gre-bgp.md",1248,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Fevals\u002Fbaselines\u002Fconnect-sdwan-gre-bgp.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fbaselines\u002Fcross-account-ram-share-not-accepted.md",1049,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Fevals\u002Fbaselines\u002Fcross-account-ram-share-not-accepted.md",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Fbaselines\u002Finter-region-peering-pending-accept.md",1096,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Fevals\u002Fbaselines\u002Finter-region-peering-pending-accept.md",{"path":88,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Fbaselines\u002Fsingle-region-hub-spoke.md",1390,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Fevals\u002Fbaselines\u002Fsingle-region-hub-spoke.md",{"path":92,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Feval_config.yaml",1817,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Fevals\u002Feval_config.yaml",{"path":96,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":97,"sourceHtmlUrl":98},"evals\u002Fevals.json",4413,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Fevals\u002Fevals.json",{"path":100,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":101,"sourceHtmlUrl":102},"evals\u002Fprompts\u002Fcloud-wan-integration-migration.md",1219,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Fevals\u002Fprompts\u002Fcloud-wan-integration-migration.md",{"path":104,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":105,"sourceHtmlUrl":106},"evals\u002Fprompts\u002Fconnect-sdwan-gre-bgp.md",1180,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Fevals\u002Fprompts\u002Fconnect-sdwan-gre-bgp.md",{"path":108,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":109,"sourceHtmlUrl":110},"evals\u002Fprompts\u002Fcross-account-ram-share-not-accepted.md",949,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Fevals\u002Fprompts\u002Fcross-account-ram-share-not-accepted.md",{"path":112,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":113,"sourceHtmlUrl":114},"evals\u002Fprompts\u002Finter-region-peering-pending-accept.md",1060,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Fevals\u002Fprompts\u002Finter-region-peering-pending-accept.md",{"path":116,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":117,"sourceHtmlUrl":118},"evals\u002Fprompts\u002Fsingle-region-hub-spoke.md",1198,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Fevals\u002Fprompts\u002Fsingle-region-hub-spoke.md",{"path":120,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":121,"sourceHtmlUrl":122},"example\u002FREADME.md",5708,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Fexample\u002FREADME.md",{"path":124,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":125,"sourceHtmlUrl":126},"references\u002Fadvanced-patterns.md",6246,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":128,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fcross-account-and-connect-guide.md",9011,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Freferences\u002Fcross-account-and-connect-guide.md",{"path":132,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":133,"sourceHtmlUrl":134},"references\u002Fdiagnostic-commands.md",1176,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Freferences\u002Fdiagnostic-commands.md",{"path":136,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":137,"sourceHtmlUrl":138},"references\u002Froute-tables-and-routing.md",6122,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Freferences\u002Froute-tables-and-routing.md",{"path":140,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":141,"sourceHtmlUrl":142},"references\u002Fworked-examples.md",7285,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Freferences\u002Fworked-examples.md",{"path":144,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":145,"sourceHtmlUrl":146},"skill.usf.yaml",4375,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftransit-gateway-deployer\u002Fskill.usf.yaml",[148,155,162,169,176,183],{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":189,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]