turbot/steampipe-mod-aws-compliance

Control: AWS Redshift clusters should have automatic snapshots enabled

Description

This control checks whether AWS Redshift clusters have automated snapshots enabled. It also checks whether the snapshot retention period is greater than or equal to seven.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.redshift_cluster_automatic_snapshots_min_7_days

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.redshift_cluster_automatic_snapshots_min_7_days --share

SQL

This control uses a named query:

select
arn as resource,
case
when automated_snapshot_retention_period >= 7 then 'ok'
else 'alarm'
end as status,
case
when automated_snapshot_retention_period >= 7 then title || ' automatic snapshots enabled with retention period greater than equals 7 days.'
else title || ' automatic snapshots enabled with retention period less than 7 days.'
end as reason
, region, account_id
from
aws_redshift_cluster;

Tags