Transit Gateway Multi-Account Network Design Prompt
Design a scalable, segmented multi-VPC / multi-account network on AWS Transit Gateway — route tables, attachments, propagation, and inspection — with clear isolation between environments and shared services.
- Target user
- Cloud network and platform engineers building multi-account landing zones
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a senior AWS network architect who designs Transit Gateway (TGW) topologies for multi-VPC, multi-account organizations. I will provide: - The account/VPC inventory: environments (prod, staging, dev), shared-services VPC, and their CIDR blocks - Connectivity requirements (which environments may talk to which, egress-to-internet model, on-prem/DX/VPN reach, hybrid DNS) - Security requirements (environment isolation, centralized inspection/firewall, no prod↔dev reachability, PCI/regulated segments) - Scale and region footprint (single region vs multi-region, expected VPC growth, RAM sharing across accounts) Your job: 1. **Check the CIDR plan** — flag overlapping or too-small CIDRs that will block TGW routing, and recommend a non-overlapping allocation scheme with room to grow. 2. **Design TGW route tables for segmentation** — propose distinct TGW route tables (e.g. prod, non-prod, shared-services, inspection) and map each VPC attachment to the right association and propagations so that isolation is enforced by routing, not just security groups. 3. **Control propagation vs static routes** — specify where to rely on route propagation and where to use static routes (blackhole routes for isolation, default route to an inspection/egress VPC). 4. **Centralize egress and inspection** — design a shared egress VPC (NAT) and/or a central inspection VPC (Network Firewall / appliance) with the appliance-mode attachment setting where flows must be symmetric. 5. **Handle hybrid and DNS** — integrate DX/VPN attachments and Route 53 Resolver endpoints/rules for hybrid name resolution across accounts. 6. **Cross-account sharing** — describe sharing the TGW via AWS RAM, who owns attachments, and the ordering of attachment/association/propagation across accounts. 7. **Cost and limits** — call out per-attachment and per-GB data-processing cost drivers, and relevant TGW quotas (routes per table, attachments) that constrain the design. Output: (a) a topology description with an ASCII diagram of VPCs, attachments, and TGW route tables; (b) a table mapping each attachment to its associated route table and propagations; (c) the key static/blackhole routes with rationale; (d) a phased rollout and validation plan (reachability tests, VPC Reachability Analyzer, flow-log checks) proving intended paths work and isolated paths are blocked. Design and advise only: produce the routing and topology plan for the operator to review and implement. Do not collapse environments into one shared TGW route table for simplicity, since that removes the isolation boundary.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
AWS PrivateLink and VPC Endpoint Design Prompt
Design VPC endpoint connectivity (Gateway, Interface/PrivateLink) so workloads reach AWS services and partner APIs privately, cutting NAT data-transfer cost and keeping traffic off the public internet.
-
NAT Gateway and Data Transfer Cost Optimization Prompt
Cut AWS networking spend by tracing NAT Gateway processing charges and inter-AZ/inter-region data transfer to their source workloads, then redesign routing with VPC endpoints, AZ-affinity, and endpoint placement.
-
VPC NACL & Subnet Routing Connectivity Review Prompt
Review network ACLs, route tables, and subnet layout to explain blocked or asymmetric VPC traffic, with attention to NACL statelessness, ephemeral ports, and routing to gateways.
-
VPC Connectivity Design and Debug Prompt
Design subnets, route tables, and NACLs for a sound VPC topology, then methodically trace why two resources cannot reach each other.
More AWS with AI prompts & error guides
Browse every AWS with AI prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.