Control: AWS Redshift should have required maintenance settings
Description
Ensure whether AWS Redshift clusters have the specified maintenance settings. Redshift clusters `allowVersionUpgrade` should be set to `true` and `automatedSnapshotRetentionPeriod` should be greater than 7.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.redshift_cluster_maintenance_settings_check
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.redshift_cluster_maintenance_settings_check --share
SQL
This control uses a named query:
select arn as resource, case when allow_version_upgrade and automated_snapshot_retention_period >= 7 then 'ok' else 'alarm' end as status, case when allow_version_upgrade and automated_snapshot_retention_period >= 7 then title || ' has the required maintenance settings.' else title || ' does not have required maintenance settings.' end as reason , region, account_idfrom aws_redshift_cluster;