turbot/aws_compliance

Query: redshift_cluster_encryption_logging_enabled

Usage

powerpipe query aws_compliance.query.redshift_cluster_encryption_logging_enabled

Steampipe Tables

SQL

select
arn as resource,
case
when not encrypted then 'alarm'
when not (logging_status ->> 'LoggingEnabled') :: boolean then 'alarm'
else 'ok'
end as status,
case
when not encrypted then title || ' not encrypted.'
when not (logging_status ->> 'LoggingEnabled')::boolean then title || ' audit logging not enabled.'
else title || ' audit logging and encryption enabled.'
end as reason
, region, account_id
from
aws_redshift_cluster;

Controls

The query is being used by the following controls: