Ensure Transit gateway have a name tag

In order to control your VPC environment, all the components should have a meaningful name.

Risk Level: Low
Cloud Entity: AWS Transit Gateway
CloudGuard Rule ID: D9.TF.AWS.OPE.14
Covered by Spectral: No
Category: Networking & Content Delivery

GSL LOGIC

aws_ec2_transit_gateway should have tags.Name

REMEDIATION

Perform the following to set a Name tag to your Transit Gateways:

From Portal

  1. Sign in to the Amazon VPC console at https://console.aws.amazon.com/vpc/
  2. Choose Transit Gateways
  3. Move your mouse to the name field, click the edit logo.
  4. Choose informational and meaningful name.

From CLI
aws ec2 create-tags --resources <Transit gateway ID> --tags Name = <Meaningful name>

References
https://docs.aws.amazon.com/vpc/latest/tgw/what-is-transit-gateway.html
CLI: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/create-tags.html

AWS Transit Gateway

AWS Transit Gateway connects VPCs and on-premises networks through a central hub. This simplifies your network and puts an end to complex peering relationships. It acts as a cloud router ��� each new connection is only mad

Compliance Frameworks

  • Terraform AWS CIS Foundations