turbot/terraform_oci_compliance

Query: compute_instance_monitoring_enabled

Usage

powerpipe query terraform_oci_compliance.query.compute_instance_monitoring_enabled

Steampipe Tables

SQL

select
address as resource,
case
when ((attributes_std -> 'agent_config' -> 'is_monitoring_disabled') is null or
not (attributes_std -> 'agent_config' -> 'is_monitoring_disabled')::boolean)
then 'ok'
else 'alarm'
end as status,
name || case
when ((attributes_std -> 'agent_config' -> 'is_monitoring_disabled') is null or
not (attributes_std -> 'agent_config' -> 'is_monitoring_disabled')::boolean)
then ' has monitoring enabled'
else ' has monitoring disabled'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'oci_core_instance';

Controls

The query is being used by the following controls: