turbot/terraform_oci_compliance

Query: compute_instance_metadata_service_disabled

Usage

powerpipe query terraform_oci_compliance.query.compute_instance_metadata_service_disabled

Steampipe Tables

SQL

select
address as resource,
case
when ((attributes_std -> 'instance_options' ->> 'are_legacy_imds_endpoints_disabled') is not null and
(attributes_std -> 'instance_options' ->> 'are_legacy_imds_endpoints_disabled')::boolean)
then 'ok'
else 'alarm'
end as status,
split_part(address, '.', 2) || case
when ((attributes_std -> 'instance_options' ->> 'are_legacy_imds_endpoints_disabled') is not null and
(attributes_std -> 'instance_options' ->> 'are_legacy_imds_endpoints_disabled')::boolean)
then ' legacy metadata service endpoint disabled'
else ' legacy metadata service endpoint enabled'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'oci_core_instance';

Controls

The query is being used by the following controls: