turbot/terraform_oci_compliance

GitHub

Query: compute_instance_metadata_service_disabled

Usage

steampipe query terraform_oci_compliance.query.compute_instance_metadata_service_disabled

Plugins & Tables

SQL

select
type || ' ' || name as resource,
case
when (
(
arguments -> 'instance_options' ->> 'are_legacy_imds_endpoints_disabled'
) is not null
and (
arguments -> 'instance_options' ->> 'are_legacy_imds_endpoints_disabled'
) :: boolean
) then 'ok'
else 'alarm'
end as status,
name || case
when (
(
arguments -> 'instance_options' ->> 'are_legacy_imds_endpoints_disabled'
) is not null
and (
arguments -> '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: