Transit Gateway security group referencing works with security groups for Pods

· Open full page

With security group referencing turned on in AWS Transit Gateway (TGW), an inbound rule can name a security group from another VPC attached to the same TGW as its source. The documentation does not say whether this also works for a security group attached to a Pod’s own branch ENI, which is how Amazon EKS security groups for Pods work. I tested it in the Seoul Region. In strict mode, a rule whose only source was the Pod security group allowed the connection across the TGW. In standard mode with AWS_VPC_K8S_CNI_EXTERNALSNAT=false, the traffic left with the node IP and was judged by the node security group instead.

Leave a Comment