turbot/steampipe-mod-aws-compliance

Control: Neptune DB clusters should have automated backups enabled

Description

This control checks whether a Neptune DB cluster has automated backups enabled, and a backup retention period greater than or equal to 7 days. The control fails if backups aren't enabled for the Neptune DB cluster, or if the retention period is less than 7 days.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.neptune_db_cluster_automated_backup_enabled

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
arn as resource,
case
when backup_retention_period >= 7 then 'ok'
else 'alarm'
end as status,
case
when backup_retention_period >= 7 then title || ' automated backups enabled.'
else title || ' automated backups disabled.'
end as reason
, region, account_id
from
aws_neptune_db_cluster;

Tags