turbot/aws_compliance

Control: Auto Scaling group should configure EC2 instances to require Instance Metadata Service Version 2 (IMDSv2)

Description

This control checks whether IMDSv2 is enabled on all instances launched by AWS EC2 Auto Scaling groups. The control fails if the Instance Metadata Service (IMDS) version is not included in the launch configuration or if both IMDSv1 and IMDSv2 are enabled.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.autoscaling_launch_config_requires_imdsv2

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.autoscaling_launch_config_requires_imdsv2 --share

SQL

This control uses a named query:

autoscaling_launch_config_requires_imdsv2

Tags