- Newest
- Most votes
- Most comments
You've raised a good question about the AWS Transit Gateway subnet recommendations. Let me clarify the reasoning behind this best practice.
The recommendation to use a separate subnet for each transit gateway VPC attachment (with a small CIDR like /28) serves several important purposes, even though it appears to add complexity:
-
Separation of concerns: By isolating the transit gateway attachment in its own subnet, you create a clear boundary between transit infrastructure and workloads. This makes network management and troubleshooting easier.
-
Resource allocation control: Using a dedicated subnet prevents workload resources from being deployed in the same subnet as your transit gateway attachment. You can even use subnet CIDR reservations to explicitly prevent EC2 instances or other resources from being allocated in this subnet.
-
Security posture: While the recommendation is to keep NACLs open on the transit gateway subnet, this is specifically for the transit gateway traffic to flow properly. The workload subnets can have more restrictive NACLs applied based on your specific security requirements.
-
Operational clarity: Having dedicated transit gateway subnets makes it easier to understand traffic flows and apply consistent networking policies across your organization.
The recommendation isn't suggesting you configure but not use NACLs. Rather, it's advising that the transit gateway subnet should have open NACLs to allow transit traffic to flow freely, while you apply your security controls at the workload subnet level where they're more effective and won't interfere with the transit gateway's operation.
This approach follows the AWS best practice of using purpose-built subnets for infrastructure components, similar to how you might use dedicated subnets for NAT gateways or load balancers.
Sources
Network ACLs for transit gateways in AWS Transit Gateway - Amazon VPC
How can I restrict the allocation of resources in the subnet assigned to the VPC attachment transit gateway? | AWS re:Post
AWS Transit Gateway design best practices - Amazon VPC
Preserve routable IP space in multi-account VPC designs for non-workload subnets - AWS Prescriptive Guidance
Control subnet traffic with network access control lists - Amazon Virtual Private Cloud
Relevant content
asked 7 years ago
