turbot/aws_compliance

Query: elasticache_redis_cluster_automatic_backup_retention_15_days

Usage

powerpipe query aws_compliance.query.elasticache_redis_cluster_automatic_backup_retention_15_days

SQL

select
arn as resource,
case
when snapshot_retention_limit < 15 then 'alarm'
else 'ok'
end as status,
case
when snapshot_retention_limit = 0 then title || ' automatic backups not enabled.'
when snapshot_retention_limit < 15 then title || ' automatic backup retention period is less than 15 days.'
else title || ' automatic backup retention period is more than 15 days.'
end as reason
, region, account_id
from
aws_elasticache_replication_group;

Controls

The query is being used by the following controls: