You are architecting a Transit Gateway (TGW) design in AWS with centralized security using VM-Series firewalls in a security VPC. East-West traffic between Spoke VPCs must be inspected by the firewalls. Which AWS feature must be configured on the TGW route tables to ensure traffic destined to another Spoke VPC is intercepted and routed to the security VPC attachment?
Trap 1: AWS Network Firewall rules mirroring all traffic to the VM-Series…
Network Firewall rules mirroring cannot redirect TGW traffic; the required mechanism is TGW route table entries pointing spoke CIDRs at the security VPC attachment, enabling appliance-mode inspection. Mirroring suits out-of-band packet capture for intrusion detection, not inline east-west enforcement.
Trap 2: Security groups attached directly to the TGW attachment interface
Security groups filter traffic at the elastic network interface of resources they attach to; they cannot be attached to a TGW attachment and cannot alter TGW route selection. They would be the right control for restricting traffic to individual EC2 instances or ENIs, not for steering spoke-to-spoke traffic through a security VPC.
Trap 3: Cross-region peering attachments with BGP enabled
Cross-region peering attachments connect Transit Gateways in different Regions and cannot intercept intra-Region spoke-to-spoke traffic. It is tempting because it is the correct mechanism for global routing between Regional Transit Gateways, but this scenario needs appliance-mode or a default route in the spoke association table pointing to the security VPC attachment.
- A
AWS Network Firewall rules mirroring all traffic to the VM-Series interface
Why it fails: Network Firewall rules mirroring cannot redirect TGW traffic; the required mechanism is TGW route table entries pointing spoke CIDRs at the security VPC attachment, enabling appliance-mode inspection. Mirroring suits out-of-band packet capture for intrusion detection, not inline east-west enforcement.
- B
Security groups attached directly to the TGW attachment interface
Why it fails: Security groups filter traffic at the elastic network interface of resources they attach to; they cannot be attached to a TGW attachment and cannot alter TGW route selection. They would be the right control for restricting traffic to individual EC2 instances or ENIs, not for steering spoke-to-spoke traffic through a security VPC.
- C
Route table propagation with specific static routes pointing to the security VPC attachment
Static routes in the TGW route tables pointing to the security VPC attachment force East-West traffic between Spoke VPCs through the VM-Series firewalls. Propagation alone would bypass inspection, so explicit routes satisfy the interception requirement.
- D
Cross-region peering attachments with BGP enabled
Why it fails: Cross-region peering attachments connect Transit Gateways in different Regions and cannot intercept intra-Region spoke-to-spoke traffic. It is tempting because it is the correct mechanism for global routing between Regional Transit Gateways, but this scenario needs appliance-mode or a default route in the spoke association table pointing to the security VPC attachment.