turbot/steampipe-mod-aws-compliance

Control: RDS DB instance multiple az should be enabled

Description

Multi-AZ support in AWS Relational Database Service (AWS RDS) provides enhanced availability and durability for database instances.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.rds_db_instance_multiple_az_enabled

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
arn as resource,
case
when engine ilike any (array ['%aurora-mysql%', '%aurora-postgres%']) then 'skip'
when multi_az then 'ok'
else 'alarm'
end as status,
case
when engine ilike any (array ['%aurora-mysql%', '%aurora-postgres%']) then title || ' cluster instance.'
when multi_az then title || ' Multi-AZ enabled.'
else title || ' Multi-AZ disabled.'
end as reason
, region, account_id
from
aws_rds_db_instance;

Tags