Transit Gateway Deployer
What this skill does
Provisions production-grade AWS Transit Gateway topologies with
secure defaults: TGW creation (Amazon ASN, DNS support, multicast,
AutoAcceptSharedAttachments), VPC attachments with subnet selections,
TGW route tables (association + propagation model), inter-region
peering connections, Connect attachments with GRE tunnels for SD-WAN
appliances, TGW Network Manager for global topology visualization,
cross-account sharing via AWS RAM, multicast domains, and AWS Cloud
WAN integration. Emits a deployment plan with a READY_TO_DEPLOY
checklist.
Mindset
One-line takeaway: a Transit Gateway is a regional,
cloud-native router that scales VPC-to-VPC, VPC-to-VPN, and
VPC-to-on-prem connectivity without the pairwise explosion of VPC
peering. One TGW per region (typical), attachments plug VPCs and
remote networks in, and route tables (with association and
propagation) express the routing policy.
The three Mindset deep-dive facts moved verbatim to references/advanced-patterns.md.
Quick navigation
| Section |
What it covers |
When to read it |
| Quick reference |
Verdict thresholds + checklist matrix + TGW limits |
Before any operation |
| Pre-flight |
TGW/VPC/subnet gate, RAM, peering, Connect, BGP |
Before executing any CLI |
| Process |
Per-step: TGW create, VPC attach, route tables, peering, Connect, multicast, Network Manager, RAM, Cloud WAN |
When choosing each step |
| Common patterns |
Single-region hub-spoke / inter-region peering / SD-WAN Connect / Cloud WAN migration |
Boilerplate lookup |
| STRICT output contract |
Required TGW/VERDICT/PRE_CHECKS/STEPS/POST_VERIFY block |
Formatting the response |
| NEVER (top 5) |
Hard rules preventing common insecure patterns |
Review before deploy |
| Expert heuristic |
When to use TGW route tables vs. security group-based segmentation |
Choosing segmentation model |
Quick reference — verdict thresholds
| Verdict |
Trigger condition |
Action |
PREREQUISITES_MISSING |
Any pre-check failed (VPC subnet not in available state, subnet AZ scope mismatch across attachments, TGW ASN conflict, route table association/propagation conflict, peering attachment not in available state in peer region, RAM share PENDING/REJECTED, Connect peer BGP ASN mismatch, multicast domain member in different TGW, Direct Connect gateway already associated with another TGW, TGW deleting/failed) |
List failures, do NOT execute |
READY_TO_DEPLOY |
All pre-checks passed; awaiting CONFIRM gate |
Emit exact CLI sequence with full topology config, wait for operator yes |
Deployment checklist (every dimension must pass):
| Dimension |
Requirement |
Step |
| TGW ASN |
64512-65535 (private) or specific 4-byte range; unique per TGW peering pair |
Step 1 |
| DNS support |
enableDnsSupport true (recommended) — allows VPC-resident Route 53 Resolver to be reached via TGW |
Step 1 |
| DNS propagation |
enableDnsPropagation true (recommended) — DNS hostnames propagate across attachments |
Step 1 |
| Multicast |
Disabled by default; enable only with explicit multicast domain plan |
Step 1 |
| AutoAcceptSharedAttachments |
false for production (recommended) — owner accepts cross-account attachments explicitly |
Step 1 |
| Default route table association |
true (recommended for simple topology) or false (multi-table segmentation) |
Step 1 |
| Default route table propagation |
true (recommended for simple topology) or false (multi-table segmentation) |
Step 1 |
| VPC attachment subnets |
One subnet per AZ; subnets must be available; minimum /28 |
Step 2 |
| VPC attachment AZ scope |
Same AZs across all attachments in a topology for predictable routing |
Step 2 |
| Appliance mode |
Disabled by default; enable for firewalls/NVA in-line inspection |
Step 2 |
| Route tables |
One per segmentation tier (prod/non-prod/segment-X) |
Step 3 |
| Associations |
Each attachment associated with one route table |
Step 3 |
| Propagations |
Each attachment propagates to one or more route tables |
Step 3 |
| Static routes |
Added explicitly with create-transit-gateway-route (blackhole optional) |
Step 3 |
| Peering |
Inter-region or intra-region; peer region TGW exists and available |
Step 4 |
| Connect attachment |
Backed by a VPC or Direct Connect gateway attachment |
Step 5 |
| Connect peer |
BGP ASN and peer GRE address; inside CIDR /29 minimum |
Step 5 |
| Multicast domain |
Members in same TGW; IGMP snooping optional |
Step 6 |
| Network Manager |
Global network contains TGW for topology view |
Step 7 |
| RAM share |
Principal accepted in consumer account before attachment creation |
Step 8 |
| Cloud WAN |
Core network attached to TGW via create-attachment |
Step 9 |
Transit Gateway limits (2026) moved verbatim to references/advanced-patterns.md.
Pre-flight: deployment specification gate (run before architecture output)
Before producing the deployment plan, validate the input specification.
Several requirements block deployment — proceeding with an invalid
spec produces a non-functional or insecure TGW topology.
Live-account pre-flight checks (skip if doing offline architecture plan):
The 7 live-account pre-flight checks moved verbatim to references/diagnostic-commands.md.
| Attribute |
Value |
Effect on plan |
| AutoAcceptSharedAttachments |
false |
Owner must explicitly accept each cross-account attachment after creation. Recommended for prod. |
| DefaultRouteTableAssociation |
true |
New attachments auto-associate to the default route table. Simpler but less isolation. |
| DefaultRouteTableAssociation |
false |
Owner must explicitly associate each attachment. Required for multi-table segmentation. |
| ApplianceModeSupport |
enable |
Hairpin traffic through an NVA in a VPC attachment. Required for centralized firewall inspection. |
| MulticastSupport |
enable |
Enables multicast domains. Cannot be toggled after creation. |
If the deployment spec is incomplete (missing VPC IDs, subnet
lists, or TGW topology), output:
TGW_SPEC: <name-or-unknown>
VERDICT: PREREQUISITES_MISSING
REASON: Deployment specification is missing required fields (<list>).
Cannot produce a TGW plan without <field> — the resulting deployment
would be non-functional or insecure.
REQUIRED:
- tgw_asn (64512-65535 or 4-byte private range)
- vpc_attachments (list of {vpc_id, subnet_ids})
- route_table_topology (associations + propagations per attachment)
- ram_share_principals (cross-account consumer account IDs, optional)
- peering_peers / connect_attachments (optional lists)
Process — Architecture planning (apply in order, produce deployment plan)
Step 0: Expert knowledge — non-obvious TGW behaviors that change the plan
All 8 non-obvious TGW behaviors moved verbatim to references/advanced-patterns.md.
Step 1: TGW creation — ASN, DNS, multicast, defaults
create-transit-gateway CLI moved verbatim to references/worked-examples.md.
| Option |
Recommended |
Effect |
AmazonSideAsn |
64512-65535 |
Unique per peering pair. Document the ASN allocation across TGWs. |
AutoAcceptSharedAttachments |
disable (prod) |
Owner accepts cross-account attachments explicitly. |
DefaultRouteTableAssociation / Propagation |
enable (simple), disable (segmented) |
Whether new attachments auto-associate / auto-propagate. |
VpnEcmpSupport |
enable |
Enables ECMP across multiple VPN tunnels for higher throughput. |
DnsSupport |
enable |
Allows Route 53 Resolver to be reachable across attachments. |
MulticastSupport |
disable (default) |
Enable only with explicit multicast use case. Cannot be toggled later. |
TransitGatewayCidrBlocks |
(optional) |
/24-/29 CIDRs the TGW advertises. Required for private NAT use cases. |
Step 2: VPC attachments — subnets, AZ scope, appliance mode
create-transit-gateway-vpc-attachment CLI moved verbatim to references/worked-examples.md.
| Subnet selection rule |
Effect |
| One subnet per AZ |
TGW places an ENI in each. Avoid multiple subnets per AZ. |
| AZ set consistent across attachments |
Avoids cross-AZ traffic within TGW (cross-AZ charges apply). |
| Minimum /28 subnet |
TGW ENI needs 6+ IPs per subnet. |
Appliance mode enable for NVAs |
Hairpins traffic through a firewall/NVA in a VPC attachment. Required for centralized inspection. |
Appliance-mode deep-dive moved verbatim to references/advanced-patterns.md.
Step 3: Route tables — associations and propagations
Route table create/associate/propagate/static-route CLIs moved verbatim to references/worked-examples.md.
| Operation |
CLI |
Effect |
| Association |
associate-transit-gateway-route-table |
Attachment uses this route table for its own lookups. One per attachment (default + extras). |
| Propagation |
enable-transit-gateway-route-table-propagation |
Attachment's routes injected INTO the route table. Many per attachment. |
| Static route |
create-transit-gateway-route |
Explicit CIDR → attachment mapping. Use for default routes, blackholes, summary routes. |
| Blackhole |
create-transit-gateway-route --blackhole |
Drops traffic to the CIDR. Use for quarantine, segmentation boundaries. |
Anti-pattern: NEVER assume association == propagation. An
attachment associated with route table A but NOT propagating to A
will have its own lookups but its routes will NOT appear in A. Set
both operations explicitly for multi-table topologies.
Step 4: Peering connections — inter-region and intra-region
Peering request/accept CLIs moved verbatim to references/worked-examples.md.
| Peering type |
Acceptance model |
Bandwidth |
| Intra-region, same owner |
Auto-accepts (owner matches) |
Up to 50 Gbps |
| Intra-region, cross-account |
Manual accept required |
Up to 50 Gbps |
| Inter-region (any account) |
Manual accept in peer region + RAM visibility |
Up to 50 Gbps, AWS backbone transit |
Peering attachments appear in BOTH TGWs. Each TGW must add the
peering's routes to its route tables (either via propagation or
static routes). Forgetting the reverse-direction propagation is the
most common cause of asymmetric routing in inter-region topologies.
Step 5: Connect attachments — GRE tunnels for SD-WAN
Connect attachment + Connect peer CLIs moved verbatim to references/worked-examples.md.
| Field |
Range |
Notes |
| Transport attachment |
VPC or Direct Connect gateway |
Must be available in the same TGW. |
| Protocol |
gre (only GRE supported) |
Encapsulates the SD-WAN overlay. |
| PeerAddress |
Private IP of SD-WAN appliance |
Reachable via the transport attachment. |
| PeerAsn |
64512-65535 (or 4-byte private) |
Must differ from TGW's AmazonSideAsn. |
| InsideCidr |
/29 minimum |
Used for BGP peering. 169.254.x.y range typical. |
BGP routes advertised by the Connect peer land in the Connect
attachment's route table as propagated routes. The TGW installs
them as routes to the Connect attachment, allowing VPCs to reach
on-prem networks behind the SD-WAN.
Anti-pattern: NEVER use Connect as a VPN replacement. Connect
does NOT encrypt — it tunnels GRE over an existing transport. For
encrypted internet-based transport, use a Site-to-Site VPN
attachment as the transport for the Connect attachment.
Step 6: Multicast domains — optional multicast routing
Multicast domain CLIs moved verbatim to references/worked-examples.md.
Multicast domains enable one-to-many streaming within a TGW (video
broadcast, financial market data, gaming backplanes). All members
must be in the same TGW. IGMPv2 support optional; static sources
optional.
Step 7: TGW Network Manager — global topology visualization
Network Manager global-network CLIs moved verbatim to references/worked-examples.md.
Network Manager visualizes the global topology across all registered
TGWs (and their attachments, peers, and Connect peers) in a single
console view. Requires registering each TGW with the global network.
Cross-account TGWs require the consumer account to register as well
(via RAM share of the global network).
Step 8: Cross-account sharing via AWS RAM
RAM share + cross-account attachment CLIs moved verbatim to references/worked-examples.md.
| Step |
Account |
Action |
| Share TGW |
Owner |
ram create-resource-share |
| Accept share |
Consumer |
ram accept-resource-share-invitation |
| Create VPC attachment |
Consumer |
ec2 create-transit-gateway-vpc-attachment |
Accept VPC attachment (if AutoAcceptSharedAttachments=disable) |
Owner |
ec2 accept-transit-gateway-vpc-attachment |
Step 9: AWS Cloud WAN integration (2024+)
Cloud WAN core-network + attachment CLIs moved verbatim to references/worked-examples.md.
Cloud WAN provides a policy-driven global network abstraction on top
of TGWs. The core network policy defines segments (e.g., prod,
non-prod, shared-services) and routing rules; Cloud WAN translates
the policy into TGW route tables and propagations. Use Cloud WAN
when managing more than ~5 TGWs globally. Existing TGWs can be
attached non-disruptively; cutover happens by re-associating
attachments from the original route tables to the Cloud WAN-managed
ones.
Common patterns
All six common topology patterns moved verbatim to references/worked-examples.md.
Output format — MANDATORY literal labels
Every response MUST begin with the block below — no preamble, no
conversational opening. The labels are case-sensitive all-caps
keywords — write them EXACTLY as shown. Do NOT write a preamble.
Start with TGW: and stop after NOTES:.
TGW: <tgw-name>
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
TARGET: <tgw-name> (tgw-id: <id> for updates)
PRE_CHECKS:
- [PASS] <check description>
- [FAIL] <check description> — <reason>
CHECKLIST:
TGW_CONFIG:
ASN: <64512-65535>
DNS support: <enabled|disabled>
Multicast: <enabled|disabled>
AutoAcceptSharedAttachments: <enabled|disabled>
VPC_ATTACHMENTS:
- Name: <name> | VPC: <vpc-id> | Subnets: <subnet-id list> | AZs: <az list> | Appliance mode: <enabled|disabled>
ROUTE_TABLES:
- Name: <rtb-name> | Associations: <attachment-name list> | Propagations: <attachment-name list>
ROUTE_ENTRIES:
- Route table: <rtb-name> | Destination: <cidr> | Target: <attachment-name|blackhole>
RAM_SHARE: <count> principals (auto-accept <enabled|disabled>)
NETWORK_MANAGER: <registered|not registered> global-network <id>
CLOUD_WAN: <attached|not attached> core-network <id>
STEPS:
1. CONFIRM: About to <operation> TGW <name> in account <account> region <region>. This will <consequence>. Estimated monthly cost: <$X>. Proceed? (yes/no)
2. <exact CLI command — no placeholders>
POST_VERIFY:
- [PASS] <verification description>
- [FAIL] <verification description> — <reason>
NOTES: <segmentation model, peering direction, cost posture>
Status marker semantics:
[PASS] — check passed.
[FAIL] — check failed; cite the reason.
PREREQUISITES_MISSING verdict: if any pre-check fails, verdict
is PREREQUISITES_MISSING with each gap listed. Do NOT also emit
READY_TO_DEPLOY.
STRICT output contract
Required output structure
Every response MUST begin with the block from "Output format" —
no preamble, no conversational opening. The TGW: and VERDICT:
lines are always the first two lines.
FORBIDDEN output patterns
- NEVER start with "Let me analyze…" or "I'll create…" — the
TGW: line is always the FIRST line. No conversational preamble.
- NEVER use lowercase verdict values — emit
READY_TO_DEPLOY
or PREREQUISITES_MISSING (not ready, prerequisites).
- NEVER omit PRE_CHECKS — every pre-check run must appear with
[PASS] or [FAIL] and a specific reason for each failure. An
empty PRE_CHECKS block is non-compliant.
- NEVER conflate route table association with propagation — emit
both as separate ROUTE_TABLES entries. Association = which route
table an attachment LOOKS UP routes in; propagation = which route
tables an attachment INJECTS its routes into.
- NEVER emit a plan with placeholder values (e.g.,
<tgw-id>,
<vpc-id>) in a READY_TO_DEPLOY plan — every field must be
populated with actual values from the input.
- NEVER omit the CONFIRM gate as the first STEPS entry for any
state-changing operation.
- NEVER deploy cross-account attachments without RAM share steps —
the owner creates the RAM share; the consumer creates the VPC
attachment; the owner accepts the attachment (when
AutoAcceptSharedAttachments=false). Missing either side leaves
the attachment in pendingAcceptance.
- NEVER claim success without verifying each attachment is
available via describe-transit-gateway-vpc-attachments —
attachments in pendingAcceptance are non-functional.
- NEVER deploy a peering attachment without verifying acceptance
in the peer region — a
pendingAcceptance peering is
non-functional.
Worked example — TGW with 3 VPC attachments + cross-account RAM sharing
TGW: prod-tgw-us-east-1
VERDICT: READY_TO_DEPLOY
TARGET: prod-tgw-us-east-1 (tgw-id: tgw-0abc123def)
PRE_CHECKS:
- [PASS] TGW ASN 64512 unique within peering pair (peer TGW us-west-2 uses 64513)
- [PASS] DNS support enabled, DNS propagation enabled
- [PASS] VPC vpc-0app1 subnets subnet-0a1, subnet-0b1, subnet-0c1 all available, /28+
- [PASS] VPC vpc-0app2 subnets subnet-0a2, subnet-0b2, subnet-0c2 all available, /28+
- [PASS] VPC vpc-shared (account 222222222222) subnets subnet-0x1, subnet-0x2, subnet-0x3 all available, /28+
- [PASS] AZ scope us-east-1a/b/c consistent across all three VPC attachments
- [PASS] RAM share to 222222222222 is ACTIVE and accepted by consumer
- [PASS] IAM principal holds ec2:CreateTransitGateway*, AssociateTransitGatewayRouteTable, EnableTransitGatewayRouteTablePropagation, ram:CreateResourceShare
- [PASS] AutoAcceptSharedAttachments=false for production topology
CHECKLIST:
TGW_CONFIG:
ASN: 64512
DNS support: enabled
Multicast: disabled
AutoAcceptSharedAttachments: disabled
Default route table association: disabled
Default route table propagation: disabled
VPC_ATTACHMENTS:
- Name: app1-tgw-attach | VPC: vpc-0app1 | Subnets: subnet-0a1, subnet-0b1, subnet-0c1 | AZs: us-east-1a/b/c | Appliance mode: disabled
- Name: app2-tgw-attach | VPC: vpc-0app2 | Subnets: subnet-0a2, subnet-0b2, subnet-0c2 | AZs: us-east-1a/b/c | Appliance mode: disabled
- Name: shared-tgw-attach | VPC: vpc-shared (acct 222222222222) | Subnets: subnet-0x1, subnet-0x2, subnet-0x3 | AZs: us-east-1a/b/c | Appliance mode: disabled
ROUTE_TABLES:
- Name: prod-rtb | Associations: app1-tgw-attach, app2-tgw-attach | Propagations: app1-tgw-attach, app2-tgw-attach, shared-tgw-attach
- Name: shared-rtb | Associations: shared-tgw-attach | Propagations: shared-tgw-attach
ROUTE_ENTRIES:
- Route table: prod-rtb | Destination: 0.0.0.0/0 | Target: shared-tgw-attach
- Route table: shared-rtb | Destination: 10.0.0.0/8 | Target: blackhole
RAM_SHARE: 1 principal (account 222222222222, auto-accept disabled)
NETWORK_MANAGER: registered global-network global-network-0abc
CLOUD_WAN: not attached
STEPS:
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/mo base + $109.50/mo attachments + $0.02/GB processed. Proceed? (yes/no)
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}]"
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}]"
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}]"
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}]"
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}]"
7. aws ram create-resource-share --name prod-tgw-share --resource-arns arn:aws:ec2:us-east-1:111111111111:transit-gateway/tgw-0abc123def --principals 222222222222
8. # CONSUMER ACCOUNT 222222222222: aws ram accept-resource-share-invitation --resource-share-invitation-arn <invitation-arn>
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}]"
10. # OWNER ACCOUNT 111111111111: aws ec2 accept-transit-gateway-vpc-attachment --transit-gateway-vpc-attachment-id tgw-attach-0shared
11. aws ec2 associate-transit-gateway-route-table --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0app1
12. aws ec2 associate-transit-gateway-route-table --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0app2
13. aws ec2 associate-transit-gateway-route-table --transit-gateway-route-table-id tgw-rtb-0shared --transit-gateway-attachment-id tgw-attach-0shared
14. aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0app1
15. aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0app2
16. aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0shared
17. aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id tgw-rtb-0shared --transit-gateway-attachment-id tgw-attach-0shared
18. aws ec2 create-transit-gateway-route --transit-gateway-route-table-id tgw-rtb-0prod --destination-cidr-block 0.0.0.0/0 --transit-gateway-attachment-id tgw-attach-0shared --blackhole false
19. aws ec2 create-transit-gateway-route --transit-gateway-route-table-id tgw-rtb-0shared --destination-cidr-block 10.0.0.0/8 --blackhole
POST_VERIFY:
- (pending execution)
- describe-transit-gateways returns State=available for tgw-0abc123def
- describe-transit-gateway-vpc-attachments returns 3 attachments all State=available (cross-account shared-tgw-attach accepted)
- describe-transit-gateway-route-tables returns 2 route tables (prod-rtb, shared-rtb)
- prod-rtb has 3 propagations (app1, app2, shared) and 1 static route (0.0.0.0/0 -> shared)
- shared-rtb has 1 propagation (shared) and 1 blackhole route (10.0.0.0/8)
- EC2 in vpc-0app1 reaches EC2 in vpc-shared and vpc-0app2 (traceroute via TGW)
NOTES:
- Segmentation: prod-rtb for app1+app2; shared-rtb for shared-services VPC (cross-account 222222222222).
- Shared reaches prod (propagation enabled to prod-rtb); prod reaches shared (default route 0.0.0.0/0 -> shared-tgw-attach for egress).
- Reverse isolation: prod-rtb does NOT propagate to shared-rtb; shared-rtb only sees its own routes plus the 10.0.0.0/8 blackhole.
- Cross-account flow: owner (111111111111) shared TGW via RAM -> consumer (222222222222) accepted share -> consumer created VPC attachment -> owner accepted attachment (AutoAcceptSharedAttachments=false).
- Cost: $36.50/mo TGW base + 3 * $0.05/hr * 730 hr = $109.50/mo for attachments + ~$0.02/GB processed.
NEVER (top 5)
These are the highest-impact, most-frequent failure modes in Transit
Gateway deployments. Violating any one of these is a correctness or
security regression.
NEVER conflate route table association with propagation.
Association = which route table an attachment LOOKS UP routes in
(one per attachment). Propagation = which route tables an
attachment INJECTS its routes into (many). Forgetting propagation
is the #1 cause of "I attached the VPC but can't reach it"
outages. Always emit both as separate PRE_CHECKS rows.
NEVER deploy cross-account attachments without verifying the
RAM share is ACTIVE in the consumer account. A PENDING or
REJECTED share prevents the consumer from creating the VPC
attachment. With AutoAcceptSharedAttachments=false, the owner
must also accept the consumer's attachment after creation.
NEVER enable multicast after TGW creation. Multicast support
is set at create-transit-gateway time and cannot be toggled
later. If you anticipate multicast in 1-2 years, enable it at
creation — the cost is identical.
NEVER use inconsistent AZ scopes across VPC attachments without
documenting the cross-AZ traffic impact. Attachment A in
us-east-1a/b/c and B in us-east-1a/b/d forces cross-AZ traffic
between c and d, incurring cross-AZ transfer charges.
NEVER deploy a Connect attachment as a VPN replacement.
Connect rides on top of a VPC or Direct Connect gateway
attachment and does NOT encrypt — it tunnels GRE over an existing
transport. For internet-based transport, use a Site-to-Site VPN
attachment as the transport for the Connect attachment. SD-WAN
appliances handle their own encryption; do not assume Connect
provides it.
Expert heuristic: TGW route tables vs. security group segmentation
Segmentation in a TGW topology can be enforced at TWO layers: TGW
route tables (network-layer isolation) or VPC security groups
(instance-layer isolation). The heuristic below resolves which to use.
| Signal |
Choose |
| Hard isolation between prod and non-prod (audit/compliance) |
TGW route tables (no propagation between tiers) |
| Soft segmentation between application tiers within a VPC |
Security groups (more flexible) |
| Many segments (>5) with complex routing policies |
TGW route tables (security groups don't scale) |
| Per-instance or per-subnet access control |
Security groups (TGW is per-VPC) |
| Compliance regime requiring "air gap" between environments |
TGW route tables with blackhole routes |
| Cross-account isolation |
TGW route tables (security groups are account-scoped) |
Decision rules:
- Default to TGW route tables for any topology with 3+ VPCs or
multiple segmentation tiers. Use security groups for fine-grained
access within a VPC.
- For "air gap" compliance (e.g., PCI scope isolation), use TGW
route tables with no cross-tier propagation plus blackhole routes.
- For Cloud WAN topologies, let Cloud WAN manage the route tables —
manual route table changes inside a Cloud WAN-managed TGW will be
overwritten by the next policy application.
- Security groups are always recommended ADDITIONALLY — defense in
depth. They do not replace route table segmentation.
ALWAYS emit the segmentation model as a PRE_CHECKS row naming the
route table topology, the segmentation tiers, and the propagation
directions.
Recent AWS features (2024-2026)
The 2024-2026 feature timeline moved verbatim to references/advanced-patterns.md.
AWS documentation
References (load on demand)
- references/worked-examples.md — per-step CLI sequences (Steps 1-9) and the six common topology patterns
- references/advanced-patterns.md — Mindset deep-dive facts, Step 0 non-obvious TGW behaviors, 2026 TGW limits, appliance-mode deep-dive, 2024-2026 feature timeline
- references/diagnostic-commands.md — 7 live-account pre-flight checks
- references/cross-account-and-connect-guide.md — cross-account and Connect detail
- references/route-tables-and-routing.md — route table and routing detail
1---2name: transit-gateway-deployer3description: '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.'4license: Apache-2.05compatibility: 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...6metadata:7 source: https://skillmd.com/skills/jhkchan/transit-gateway-deployer8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '1'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Networking15 task_type: deploy16 skill_class: capability17 lifecycle_status: active18 verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING19 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.20 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 support21 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/GRE 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.'22 version: 0.1.023 author: Jacky Chan — AWS Community Builder24 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 network25 tags: transit-gateway, tgw, networking, deploy, hub-and-spoke, peering, connect-attachment, ram-share, cloud-wan, multicast26---2728# Transit Gateway Deployer2930## What this skill does3132Provisions production-grade AWS Transit Gateway topologies with33secure defaults: TGW creation (Amazon ASN, DNS support, multicast,34AutoAcceptSharedAttachments), VPC attachments with subnet selections,35TGW route tables (association + propagation model), inter-region36peering connections, Connect attachments with GRE tunnels for SD-WAN37appliances, TGW Network Manager for global topology visualization,38cross-account sharing via AWS RAM, multicast domains, and AWS Cloud39WAN integration. Emits a deployment plan with a READY_TO_DEPLOY40checklist.4142## Mindset4344**One-line takeaway:** a Transit Gateway is a **regional,45cloud-native router** that scales VPC-to-VPC, VPC-to-VPN, and46VPC-to-on-prem connectivity without the pairwise explosion of VPC47peering. One TGW per region (typical), attachments plug VPCs and48remote networks in, and route tables (with association and49propagation) express the routing policy.5051The three Mindset deep-dive facts moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).5253## Quick navigation5455| Section | What it covers | When to read it |56|---|---|---|57| **Quick reference** | Verdict thresholds + checklist matrix + TGW limits | Before any operation |58| **Pre-flight** | TGW/VPC/subnet gate, RAM, peering, Connect, BGP | Before executing any CLI |59| **Process** | Per-step: TGW create, VPC attach, route tables, peering, Connect, multicast, Network Manager, RAM, Cloud WAN | When choosing each step |60| **Common patterns** | Single-region hub-spoke / inter-region peering / SD-WAN Connect / Cloud WAN migration | Boilerplate lookup |61| **STRICT output contract** | Required TGW/VERDICT/PRE_CHECKS/STEPS/POST_VERIFY block | Formatting the response |62| **NEVER (top 5)** | Hard rules preventing common insecure patterns | Review before deploy |63| **Expert heuristic** | When to use TGW route tables vs. security group-based segmentation | Choosing segmentation model |6465## Quick reference — verdict thresholds6667| Verdict | Trigger condition | Action |68|---|---|---|69| `PREREQUISITES_MISSING` | Any pre-check failed (VPC subnet not in `available` state, subnet AZ scope mismatch across attachments, TGW ASN conflict, route table association/propagation conflict, peering attachment not in `available` state in peer region, RAM share `PENDING`/`REJECTED`, Connect peer BGP ASN mismatch, multicast domain member in different TGW, Direct Connect gateway already associated with another TGW, TGW `deleting`/`failed`) | List failures, do NOT execute |70| `READY_TO_DEPLOY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence with full topology config, wait for operator yes |7172**Deployment checklist (every dimension must pass):**7374| Dimension | Requirement | Step |75|---|---|---|76| TGW ASN | 64512-65535 (private) or specific 4-byte range; unique per TGW peering pair | Step 1 |77| DNS support | `enableDnsSupport` true (recommended) — allows VPC-resident Route 53 Resolver to be reached via TGW | Step 1 |78| DNS propagation | `enableDnsPropagation` true (recommended) — DNS hostnames propagate across attachments | Step 1 |79| Multicast | Disabled by default; enable only with explicit multicast domain plan | Step 1 |80| AutoAcceptSharedAttachments | `false` for production (recommended) — owner accepts cross-account attachments explicitly | Step 1 |81| Default route table association | `true` (recommended for simple topology) or `false` (multi-table segmentation) | Step 1 |82| Default route table propagation | `true` (recommended for simple topology) or `false` (multi-table segmentation) | Step 1 |83| VPC attachment subnets | One subnet per AZ; subnets must be `available`; minimum /28 | Step 2 |84| VPC attachment AZ scope | Same AZs across all attachments in a topology for predictable routing | Step 2 |85| Appliance mode | Disabled by default; enable for firewalls/NVA in-line inspection | Step 2 |86| Route tables | One per segmentation tier (prod/non-prod/segment-X) | Step 3 |87| Associations | Each attachment associated with one route table | Step 3 |88| Propagations | Each attachment propagates to one or more route tables | Step 3 |89| Static routes | Added explicitly with `create-transit-gateway-route` (blackhole optional) | Step 3 |90| Peering | Inter-region or intra-region; peer region TGW exists and `available` | Step 4 |91| Connect attachment | Backed by a VPC or Direct Connect gateway attachment | Step 5 |92| Connect peer | BGP ASN and peer GRE address; inside CIDR /29 minimum | Step 5 |93| Multicast domain | Members in same TGW; IGMP snooping optional | Step 6 |94| Network Manager | Global network contains TGW for topology view | Step 7 |95| RAM share | Principal accepted in consumer account before attachment creation | Step 8 |96| Cloud WAN | Core network attached to TGW via `create-attachment` | Step 9 |9798Transit Gateway limits (2026) moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).99100## Pre-flight: deployment specification gate (run before architecture output)101102Before producing the deployment plan, validate the input specification.103Several requirements **block deployment** — proceeding with an invalid104spec produces a non-functional or insecure TGW topology.105106**Live-account pre-flight checks (skip if doing offline architecture plan):**107108The 7 live-account pre-flight checks moved verbatim to [references/diagnostic-commands.md](references/diagnostic-commands.md).109110| Attribute | Value | Effect on plan |111|---|---|---|112| AutoAcceptSharedAttachments | `false` | Owner must explicitly accept each cross-account attachment after creation. Recommended for prod. |113| DefaultRouteTableAssociation | `true` | New attachments auto-associate to the default route table. Simpler but less isolation. |114| DefaultRouteTableAssociation | `false` | Owner must explicitly associate each attachment. Required for multi-table segmentation. |115| ApplianceModeSupport | `enable` | Hairpin traffic through an NVA in a VPC attachment. Required for centralized firewall inspection. |116| MulticastSupport | `enable` | Enables multicast domains. Cannot be toggled after creation. |117118**If the deployment spec is incomplete** (missing VPC IDs, subnet119lists, or TGW topology), output:120121```text122TGW_SPEC: <name-or-unknown>123VERDICT: PREREQUISITES_MISSING124REASON: Deployment specification is missing required fields (<list>).125Cannot produce a TGW plan without <field> — the resulting deployment126would be non-functional or insecure.127REQUIRED:128 - tgw_asn (64512-65535 or 4-byte private range)129 - vpc_attachments (list of {vpc_id, subnet_ids})130 - route_table_topology (associations + propagations per attachment)131 - ram_share_principals (cross-account consumer account IDs, optional)132 - peering_peers / connect_attachments (optional lists)133```134135## Process — Architecture planning (apply in order, produce deployment plan)136137### Step 0: Expert knowledge — non-obvious TGW behaviors that change the plan138139All 8 non-obvious TGW behaviors moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).140141### Step 1: TGW creation — ASN, DNS, multicast, defaults142143create-transit-gateway CLI moved verbatim to [references/worked-examples.md](references/worked-examples.md).144145| Option | Recommended | Effect |146|---|---|---|147| `AmazonSideAsn` | 64512-65535 | Unique per peering pair. Document the ASN allocation across TGWs. |148| `AutoAcceptSharedAttachments` | `disable` (prod) | Owner accepts cross-account attachments explicitly. |149| `DefaultRouteTableAssociation` / `Propagation` | `enable` (simple), `disable` (segmented) | Whether new attachments auto-associate / auto-propagate. |150| `VpnEcmpSupport` | `enable` | Enables ECMP across multiple VPN tunnels for higher throughput. |151| `DnsSupport` | `enable` | Allows Route 53 Resolver to be reachable across attachments. |152| `MulticastSupport` | `disable` (default) | Enable only with explicit multicast use case. Cannot be toggled later. |153| `TransitGatewayCidrBlocks` | (optional) | /24-/29 CIDRs the TGW advertises. Required for private NAT use cases. |154155### Step 2: VPC attachments — subnets, AZ scope, appliance mode156157create-transit-gateway-vpc-attachment CLI moved verbatim to [references/worked-examples.md](references/worked-examples.md).158159| Subnet selection rule | Effect |160|---|---|161| One subnet per AZ | TGW places an ENI in each. Avoid multiple subnets per AZ. |162| AZ set consistent across attachments | Avoids cross-AZ traffic within TGW (cross-AZ charges apply). |163| Minimum /28 subnet | TGW ENI needs 6+ IPs per subnet. |164| Appliance mode `enable` for NVAs | Hairpins traffic through a firewall/NVA in a VPC attachment. Required for centralized inspection. |165166Appliance-mode deep-dive moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).167168### Step 3: Route tables — associations and propagations169170Route table create/associate/propagate/static-route CLIs moved verbatim to [references/worked-examples.md](references/worked-examples.md).171172| Operation | CLI | Effect |173|---|---|---|174| Association | `associate-transit-gateway-route-table` | Attachment uses this route table for its own lookups. One per attachment (default + extras). |175| Propagation | `enable-transit-gateway-route-table-propagation` | Attachment's routes injected INTO the route table. Many per attachment. |176| Static route | `create-transit-gateway-route` | Explicit CIDR → attachment mapping. Use for default routes, blackholes, summary routes. |177| Blackhole | `create-transit-gateway-route --blackhole` | Drops traffic to the CIDR. Use for quarantine, segmentation boundaries. |178179**Anti-pattern:** NEVER assume association == propagation. An180attachment associated with route table A but NOT propagating to A181will have its own lookups but its routes will NOT appear in A. Set182both operations explicitly for multi-table topologies.183184### Step 4: Peering connections — inter-region and intra-region185186Peering request/accept CLIs moved verbatim to [references/worked-examples.md](references/worked-examples.md).187188| Peering type | Acceptance model | Bandwidth |189|---|---|---|190| Intra-region, same owner | Auto-accepts (owner matches) | Up to 50 Gbps |191| Intra-region, cross-account | Manual accept required | Up to 50 Gbps |192| Inter-region (any account) | Manual accept in peer region + RAM visibility | Up to 50 Gbps, AWS backbone transit |193194Peering attachments appear in BOTH TGWs. Each TGW must add the195peering's routes to its route tables (either via propagation or196static routes). Forgetting the reverse-direction propagation is the197most common cause of asymmetric routing in inter-region topologies.198199### Step 5: Connect attachments — GRE tunnels for SD-WAN200201Connect attachment + Connect peer CLIs moved verbatim to [references/worked-examples.md](references/worked-examples.md).202203| Field | Range | Notes |204|---|---|---|205| Transport attachment | VPC or Direct Connect gateway | Must be `available` in the same TGW. |206| Protocol | `gre` (only GRE supported) | Encapsulates the SD-WAN overlay. |207| PeerAddress | Private IP of SD-WAN appliance | Reachable via the transport attachment. |208| PeerAsn | 64512-65535 (or 4-byte private) | Must differ from TGW's AmazonSideAsn. |209| InsideCidr | /29 minimum | Used for BGP peering. 169.254.x.y range typical. |210211**BGP routes** advertised by the Connect peer land in the Connect212attachment's route table as propagated routes. The TGW installs213them as routes to the Connect attachment, allowing VPCs to reach214on-prem networks behind the SD-WAN.215216**Anti-pattern:** NEVER use Connect as a VPN replacement. Connect217does NOT encrypt — it tunnels GRE over an existing transport. For218encrypted internet-based transport, use a Site-to-Site VPN219attachment as the transport for the Connect attachment.220221### Step 6: Multicast domains — optional multicast routing222223Multicast domain CLIs moved verbatim to [references/worked-examples.md](references/worked-examples.md).224225Multicast domains enable one-to-many streaming within a TGW (video226broadcast, financial market data, gaming backplanes). All members227must be in the same TGW. IGMPv2 support optional; static sources228optional.229230### Step 7: TGW Network Manager — global topology visualization231232Network Manager global-network CLIs moved verbatim to [references/worked-examples.md](references/worked-examples.md).233234Network Manager visualizes the global topology across all registered235TGWs (and their attachments, peers, and Connect peers) in a single236console view. Requires registering each TGW with the global network.237Cross-account TGWs require the consumer account to register as well238(via RAM share of the global network).239240### Step 8: Cross-account sharing via AWS RAM241242RAM share + cross-account attachment CLIs moved verbatim to [references/worked-examples.md](references/worked-examples.md).243244| Step | Account | Action |245|---|---|---|246| Share TGW | Owner | `ram create-resource-share` |247| Accept share | Consumer | `ram accept-resource-share-invitation` |248| Create VPC attachment | Consumer | `ec2 create-transit-gateway-vpc-attachment` |249| Accept VPC attachment (if `AutoAcceptSharedAttachments=disable`) | Owner | `ec2 accept-transit-gateway-vpc-attachment` |250251### Step 9: AWS Cloud WAN integration (2024+)252253Cloud WAN core-network + attachment CLIs moved verbatim to [references/worked-examples.md](references/worked-examples.md).254255Cloud WAN provides a policy-driven global network abstraction on top256of TGWs. The core network policy defines segments (e.g., prod,257non-prod, shared-services) and routing rules; Cloud WAN translates258the policy into TGW route tables and propagations. Use Cloud WAN259when managing more than ~5 TGWs globally. Existing TGWs can be260attached non-disruptively; cutover happens by re-associating261attachments from the original route tables to the Cloud WAN-managed262ones.263264## Common patterns265266All six common topology patterns moved verbatim to [references/worked-examples.md](references/worked-examples.md).267268## Output format — MANDATORY literal labels269270Every response MUST begin with the block below — no preamble, no271conversational opening. The labels are **case-sensitive all-caps272keywords** — write them EXACTLY as shown. Do NOT write a preamble.273Start with `TGW:` and stop after `NOTES:`.274275```text276TGW: <tgw-name>277VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING278TARGET: <tgw-name> (tgw-id: <id> for updates)279PRE_CHECKS:280 - [PASS] <check description>281 - [FAIL] <check description> — <reason>282CHECKLIST:283 TGW_CONFIG:284 ASN: <64512-65535>285 DNS support: <enabled|disabled>286 Multicast: <enabled|disabled>287 AutoAcceptSharedAttachments: <enabled|disabled>288 VPC_ATTACHMENTS:289 - Name: <name> | VPC: <vpc-id> | Subnets: <subnet-id list> | AZs: <az list> | Appliance mode: <enabled|disabled>290 ROUTE_TABLES:291 - Name: <rtb-name> | Associations: <attachment-name list> | Propagations: <attachment-name list>292 ROUTE_ENTRIES:293 - Route table: <rtb-name> | Destination: <cidr> | Target: <attachment-name|blackhole>294 RAM_SHARE: <count> principals (auto-accept <enabled|disabled>)295 NETWORK_MANAGER: <registered|not registered> global-network <id>296 CLOUD_WAN: <attached|not attached> core-network <id>297STEPS:298 1. CONFIRM: About to <operation> TGW <name> in account <account> region <region>. This will <consequence>. Estimated monthly cost: <$X>. Proceed? (yes/no)299 2. <exact CLI command — no placeholders>300POST_VERIFY:301 - [PASS] <verification description>302 - [FAIL] <verification description> — <reason>303NOTES: <segmentation model, peering direction, cost posture>304```305306**Status marker semantics:**307- `[PASS]` — check passed.308- `[FAIL]` — check failed; cite the reason.309310**PREREQUISITES_MISSING verdict:** if any pre-check fails, verdict311is `PREREQUISITES_MISSING` with each gap listed. Do NOT also emit312`READY_TO_DEPLOY`.313314## STRICT output contract315316### Required output structure317318Every response MUST begin with the block from "Output format" —319no preamble, no conversational opening. The `TGW:` and `VERDICT:`320lines are always the first two lines.321322### FORBIDDEN output patterns323324- **NEVER start with "Let me analyze…" or "I'll create…"** — the325 `TGW:` line is always the FIRST line. No conversational preamble.326- **NEVER use lowercase verdict values** — emit `READY_TO_DEPLOY`327 or `PREREQUISITES_MISSING` (not `ready`, `prerequisites`).328- **NEVER omit PRE_CHECKS** — every pre-check run must appear with329 `[PASS]` or `[FAIL]` and a specific reason for each failure. An330 empty PRE_CHECKS block is non-compliant.331- **NEVER conflate route table association with propagation** — emit332 both as separate ROUTE_TABLES entries. Association = which route333 table an attachment LOOKS UP routes in; propagation = which route334 tables an attachment INJECTS its routes into.335- **NEVER emit a plan with placeholder values** (e.g., `<tgw-id>`,336 `<vpc-id>`) in a READY_TO_DEPLOY plan — every field must be337 populated with actual values from the input.338- **NEVER omit the CONFIRM gate** as the first STEPS entry for any339 state-changing operation.340- **NEVER deploy cross-account attachments without RAM share steps** —341 the owner creates the RAM share; the consumer creates the VPC342 attachment; the owner accepts the attachment (when343 `AutoAcceptSharedAttachments=false`). Missing either side leaves344 the attachment in `pendingAcceptance`.345- **NEVER claim success without verifying each attachment is346 `available`** via `describe-transit-gateway-vpc-attachments` —347 attachments in `pendingAcceptance` are non-functional.348- **NEVER deploy a peering attachment without verifying acceptance349 in the peer region** — a `pendingAcceptance` peering is350 non-functional.351352### Worked example — TGW with 3 VPC attachments + cross-account RAM sharing353354```text355TGW: prod-tgw-us-east-1356VERDICT: READY_TO_DEPLOY357TARGET: prod-tgw-us-east-1 (tgw-id: tgw-0abc123def)358PRE_CHECKS:359 - [PASS] TGW ASN 64512 unique within peering pair (peer TGW us-west-2 uses 64513)360 - [PASS] DNS support enabled, DNS propagation enabled361 - [PASS] VPC vpc-0app1 subnets subnet-0a1, subnet-0b1, subnet-0c1 all available, /28+362 - [PASS] VPC vpc-0app2 subnets subnet-0a2, subnet-0b2, subnet-0c2 all available, /28+363 - [PASS] VPC vpc-shared (account 222222222222) subnets subnet-0x1, subnet-0x2, subnet-0x3 all available, /28+364 - [PASS] AZ scope us-east-1a/b/c consistent across all three VPC attachments365 - [PASS] RAM share to 222222222222 is ACTIVE and accepted by consumer366 - [PASS] IAM principal holds ec2:CreateTransitGateway*, AssociateTransitGatewayRouteTable, EnableTransitGatewayRouteTablePropagation, ram:CreateResourceShare367 - [PASS] AutoAcceptSharedAttachments=false for production topology368CHECKLIST:369 TGW_CONFIG:370 ASN: 64512371 DNS support: enabled372 Multicast: disabled373 AutoAcceptSharedAttachments: disabled374 Default route table association: disabled375 Default route table propagation: disabled376 VPC_ATTACHMENTS:377 - Name: app1-tgw-attach | VPC: vpc-0app1 | Subnets: subnet-0a1, subnet-0b1, subnet-0c1 | AZs: us-east-1a/b/c | Appliance mode: disabled378 - Name: app2-tgw-attach | VPC: vpc-0app2 | Subnets: subnet-0a2, subnet-0b2, subnet-0c2 | AZs: us-east-1a/b/c | Appliance mode: disabled379 - Name: shared-tgw-attach | VPC: vpc-shared (acct 222222222222) | Subnets: subnet-0x1, subnet-0x2, subnet-0x3 | AZs: us-east-1a/b/c | Appliance mode: disabled380 ROUTE_TABLES:381 - Name: prod-rtb | Associations: app1-tgw-attach, app2-tgw-attach | Propagations: app1-tgw-attach, app2-tgw-attach, shared-tgw-attach382 - Name: shared-rtb | Associations: shared-tgw-attach | Propagations: shared-tgw-attach383 ROUTE_ENTRIES:384 - Route table: prod-rtb | Destination: 0.0.0.0/0 | Target: shared-tgw-attach385 - Route table: shared-rtb | Destination: 10.0.0.0/8 | Target: blackhole386 RAM_SHARE: 1 principal (account 222222222222, auto-accept disabled)387 NETWORK_MANAGER: registered global-network global-network-0abc388 CLOUD_WAN: not attached389STEPS:390 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/mo base + $109.50/mo attachments + $0.02/GB processed. Proceed? (yes/no)391 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}]"392 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}]"393 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}]"394 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}]"395 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}]"396 7. aws ram create-resource-share --name prod-tgw-share --resource-arns arn:aws:ec2:us-east-1:111111111111:transit-gateway/tgw-0abc123def --principals 222222222222397 8. # CONSUMER ACCOUNT 222222222222: aws ram accept-resource-share-invitation --resource-share-invitation-arn <invitation-arn>398 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}]"399 10. # OWNER ACCOUNT 111111111111: aws ec2 accept-transit-gateway-vpc-attachment --transit-gateway-vpc-attachment-id tgw-attach-0shared400 11. aws ec2 associate-transit-gateway-route-table --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0app1401 12. aws ec2 associate-transit-gateway-route-table --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0app2402 13. aws ec2 associate-transit-gateway-route-table --transit-gateway-route-table-id tgw-rtb-0shared --transit-gateway-attachment-id tgw-attach-0shared403 14. aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0app1404 15. aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0app2405 16. aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id tgw-rtb-0prod --transit-gateway-attachment-id tgw-attach-0shared406 17. aws ec2 enable-transit-gateway-route-table-propagation --transit-gateway-route-table-id tgw-rtb-0shared --transit-gateway-attachment-id tgw-attach-0shared407 18. aws ec2 create-transit-gateway-route --transit-gateway-route-table-id tgw-rtb-0prod --destination-cidr-block 0.0.0.0/0 --transit-gateway-attachment-id tgw-attach-0shared --blackhole false408 19. aws ec2 create-transit-gateway-route --transit-gateway-route-table-id tgw-rtb-0shared --destination-cidr-block 10.0.0.0/8 --blackhole409POST_VERIFY:410 - (pending execution)411 - describe-transit-gateways returns State=available for tgw-0abc123def412 - describe-transit-gateway-vpc-attachments returns 3 attachments all State=available (cross-account shared-tgw-attach accepted)413 - describe-transit-gateway-route-tables returns 2 route tables (prod-rtb, shared-rtb)414 - prod-rtb has 3 propagations (app1, app2, shared) and 1 static route (0.0.0.0/0 -> shared)415 - shared-rtb has 1 propagation (shared) and 1 blackhole route (10.0.0.0/8)416 - EC2 in vpc-0app1 reaches EC2 in vpc-shared and vpc-0app2 (traceroute via TGW)417NOTES:418 - Segmentation: prod-rtb for app1+app2; shared-rtb for shared-services VPC (cross-account 222222222222).419 - Shared reaches prod (propagation enabled to prod-rtb); prod reaches shared (default route 0.0.0.0/0 -> shared-tgw-attach for egress).420 - Reverse isolation: prod-rtb does NOT propagate to shared-rtb; shared-rtb only sees its own routes plus the 10.0.0.0/8 blackhole.421 - Cross-account flow: owner (111111111111) shared TGW via RAM -> consumer (222222222222) accepted share -> consumer created VPC attachment -> owner accepted attachment (AutoAcceptSharedAttachments=false).422 - Cost: $36.50/mo TGW base + 3 * $0.05/hr * 730 hr = $109.50/mo for attachments + ~$0.02/GB processed.423```424425## NEVER (top 5)426427These are the highest-impact, most-frequent failure modes in Transit428Gateway deployments. Violating any one of these is a correctness or429security regression.4304311. **NEVER conflate route table association with propagation.**432 Association = which route table an attachment LOOKS UP routes in433 (one per attachment). Propagation = which route tables an434 attachment INJECTS its routes into (many). Forgetting propagation435 is the #1 cause of "I attached the VPC but can't reach it"436 outages. Always emit both as separate PRE_CHECKS rows.4374382. **NEVER deploy cross-account attachments without verifying the439 RAM share is `ACTIVE` in the consumer account.** A `PENDING` or440 `REJECTED` share prevents the consumer from creating the VPC441 attachment. With `AutoAcceptSharedAttachments=false`, the owner442 must also `accept` the consumer's attachment after creation.4434443. **NEVER enable multicast after TGW creation.** Multicast support445 is set at `create-transit-gateway` time and cannot be toggled446 later. If you anticipate multicast in 1-2 years, enable it at447 creation — the cost is identical.4484494. **NEVER use inconsistent AZ scopes across VPC attachments without450 documenting the cross-AZ traffic impact.** Attachment A in451 us-east-1a/b/c and B in us-east-1a/b/d forces cross-AZ traffic452 between c and d, incurring cross-AZ transfer charges.4534545. **NEVER deploy a Connect attachment as a VPN replacement.**455 Connect rides on top of a VPC or Direct Connect gateway456 attachment and does NOT encrypt — it tunnels GRE over an existing457 transport. For internet-based transport, use a Site-to-Site VPN458 attachment as the transport for the Connect attachment. SD-WAN459 appliances handle their own encryption; do not assume Connect460 provides it.461462## Expert heuristic: TGW route tables vs. security group segmentation463464Segmentation in a TGW topology can be enforced at TWO layers: TGW465route tables (network-layer isolation) or VPC security groups466(instance-layer isolation). The heuristic below resolves which to use.467468| Signal | Choose |469|---|---|470| Hard isolation between prod and non-prod (audit/compliance) | TGW route tables (no propagation between tiers) |471| Soft segmentation between application tiers within a VPC | Security groups (more flexible) |472| Many segments (>5) with complex routing policies | TGW route tables (security groups don't scale) |473| Per-instance or per-subnet access control | Security groups (TGW is per-VPC) |474| Compliance regime requiring "air gap" between environments | TGW route tables with blackhole routes |475| Cross-account isolation | TGW route tables (security groups are account-scoped) |476477**Decision rules:**478479- Default to TGW route tables for any topology with 3+ VPCs or480 multiple segmentation tiers. Use security groups for fine-grained481 access within a VPC.482- For "air gap" compliance (e.g., PCI scope isolation), use TGW483 route tables with no cross-tier propagation plus blackhole routes.484- For Cloud WAN topologies, let Cloud WAN manage the route tables —485 manual route table changes inside a Cloud WAN-managed TGW will be486 overwritten by the next policy application.487- Security groups are always recommended ADDITIONALLY — defense in488 depth. They do not replace route table segmentation.489490ALWAYS emit the segmentation model as a PRE_CHECKS row naming the491route table topology, the segmentation tiers, and the propagation492directions.493494## Recent AWS features (2024-2026)495496The 2024-2026 feature timeline moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).497498## AWS documentation499500- **AWS Transit Gateway User Guide** — https://docs.aws.amazon.com/vpc/latest/tgw/what-is-transit-gateway.html501- **TGW route tables** — https://docs.aws.amazon.com/vpc/latest/tgw/tgw-route-tables.html502- **TGW VPC attachments** — https://docs.aws.amazon.com/vpc/latest/tgw/tgw-vpc-attachments.html503- **TGW peering attachments** — https://docs.aws.amazon.com/vpc/latest/tgw/tgw-peering.html504- **TGW Connect attachments** — https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html505- **TGW multicast domains** — https://docs.aws.amazon.com/vpc/latest/tgw/tgw-multicast-overview.html506- **AWS Cloud WAN User Guide** — https://docs.aws.amazon.com/networkmanager/latest/cloudwan/what-is-cloudwan.html507- **TGW API Reference** — https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Amazon_EC2_Transit_Gateways.html508509510## References (load on demand)511512- [references/worked-examples.md](references/worked-examples.md) — per-step CLI sequences (Steps 1-9) and the six common topology patterns513- [references/advanced-patterns.md](references/advanced-patterns.md) — Mindset deep-dive facts, Step 0 non-obvious TGW behaviors, 2026 TGW limits, appliance-mode deep-dive, 2024-2026 feature timeline514- [references/diagnostic-commands.md](references/diagnostic-commands.md) — 7 live-account pre-flight checks515- [references/cross-account-and-connect-guide.md](references/cross-account-and-connect-guide.md) — cross-account and Connect detail516- [references/route-tables-and-routing.md](references/route-tables-and-routing.md) — route table and routing detail