turbot/terraform_aws_compliance

Query: elasticache_redis_cluster_automatic_backup_retention_15_days

Usage

powerpipe query terraform_aws_compliance.query.elasticache_redis_cluster_automatic_backup_retention_15_days

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'snapshot_retention_limit') :: int < 15 then 'alarm'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'snapshot_retention_limit') :: int is null then ' automatic backups disabled'
when (attributes_std -> 'snapshot_retention_limit') :: int < 15 then ' automatic backup retention period is less than 15 days'
else ' automatic backup retention period is more than 15 days'
end || '.' reason,
path || ':' || start_line
from
terraform_resource
where
type = 'aws_elasticache_replication_group';

Controls

The query is being used by the following controls: