EC2 Transit Gateways should not automatically accept VPC attachment requests
Confirms that EC2 Transit Gateways do not automatically accept VPC attachment requests.
- service
- EC2
- severity
- High
- scope
- evaluated in every region
How to fix it
Have AutoAcceptSharedAttachments disabled on the transit gateway, so a cross-account VPC attachment request waits to be accepted rather than joining the network on arrival.
In the console
VPC → Transit Gateways → the transit gateway → Actions → Modify transit gateway
With the AWS CLI
aws ec2 modify-transit-gateway --transit-gateway-id <tgw-id> --options AutoAcceptSharedAttachments=disableWith Terraform
resource "aws_ec2_transit_gateway" "this" {
auto_accept_shared_attachments = "disable"
}
See which of your accounts this check is failing on.
Book a demo