turbot/terraform_aws_compliance

Query: ec2_launch_template_metadata_hop_limit_check

Usage

powerpipe query terraform_aws_compliance.query.ec2_launch_template_metadata_hop_limit_check

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'metadata_options' ->> 'http_put_response_hop_limit')::int > 1 then 'alarm'
else 'ok'
end as status,
split_part(address, '.', 2) || case
when (attributes_std -> 'metadata_options' ->> 'http_put_response_hop_limit')::int > 1 then ' metadata response hop limit value is greater than 1'
else ' metadata response hop limit value is not less than 1'
end || '.' as reason
, path || ':' || start_line
from
terraform_resource
where
type = 'aws_launch_template';

Controls

The query is being used by the following controls: