turbot/aws_compliance

Query: autoscaling_launch_config_requires_imdsv2

Usage

powerpipe query aws_compliance.query.autoscaling_launch_config_requires_imdsv2

SQL

select
launch_configuration_arn as resource,
case
when metadata_options_http_tokens = 'required' then 'ok'
else 'alarm'
end as status,
case
when metadata_options_http_tokens = 'required' then title || ' configured to use Instance Metadata Service Version 2 (IMDSv2).'
else title || ' not configured to use Instance Metadata Service Version 2 (IMDSv2).'
end as reason
, region, account_id
from
aws_ec2_launch_configuration;

Controls

The query is being used by the following controls: