Ensure there are no unnamed AWS EC2 instances

LOW

Description

AWS EC2 instances without a name may cause confusion during resource audit and maintenance.

Remediation

In AWS Console -

  1. Sign in to AWS Console and go to the EC2 dashboard.
  2. Select the region.
  3. In the navigation pane, choose a resource type.
  4. Under Add Tag, enter the tag key and value and choose Add Tag.
  5. Click Save.

In Terraform -

  1. For the aws_instance resource, configure the tags block with a Name field.

References:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/instance#tags

Policy Details

Rule Reference ID: AC_AWS_0430
CSP: AWS
Remediation Available: Yes
Resource: aws_instance
Resource Category: Compute

Frameworks