turbot/aws_compliance

Query: opensearch_domain_audit_logging_enabled

Usage

powerpipe query aws_compliance.query.opensearch_domain_audit_logging_enabled

Steampipe Tables

SQL

select
arn as resource,
case
when log_publishing_options -> 'AUDIT_LOGS' ->> 'Enabled' = 'true' then 'ok'
else 'ok'
end as status,
case
when log_publishing_options -> 'AUDIT_LOGS' ->> 'Enabled' = 'true' then title || ' audit logging enabled.'
else title || ' audit logging disabled.'
end as reason
, region, account_id
from
aws_opensearch_domain;

Controls

The query is being used by the following controls: