turbot/steampipe-mod-aws-compliance

Control: ElastiCache for Redis replication groups should have automatic failover enabled

Description

This control checks if ElastiCache for Redis replication groups have automatic failover enabled. This control fails if automatic failover isn't enabled for a Redis replication group.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.elasticache_replication_group_auto_failover_enabled

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
arn as resource,
case
when automatic_failover = 'enabled' then 'ok'
else 'alarm'
end as status,
case
when automatic_failover = 'enabled' then title || ' automatic failover enabled.'
else title || ' automatic failover disabled.'
end as reason
, region, account_id
from
aws_elasticache_replication_group;

Tags