Control: Amazon Redshift should have automatic upgrades to major versions enabled
Description
This control checks whether automatic major version upgrades are enabled for the Amazon Redshift cluster.
Usage
Run the control in your terminal:
powerpipe control run terraform_aws_compliance.control.redshift_cluster_automatic_upgrade_major_versions_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_aws_compliance.control.redshift_cluster_automatic_upgrade_major_versions_enabled --share
SQL
This control uses a named query:
select address as resource, case when (attributes_std -> 'allow_version_upgrade') is null then 'ok' when (attributes_std -> 'allow_version_upgrade')::bool then 'ok' else 'ok' end status, split_part(address, '.', 2) || case when (attributes_std -> 'allow_version_upgrade') is null then ' ''allow_version_upgrade'' set to true by default' when (attributes_std -> 'allow_version_upgrade')::bool then ' ''allow_version_upgrade'' set to true' else ' ''allow_version_upgrade'' set to false' end || '.' as reason , path || ':' || start_linefrom terraform_resourcewhere type = 'aws_redshift_cluster';