Control: RDS DB instances backup retention period should be greater than or equal to 7
Description
Ensure RDS DB instance backup retention period is greater than or equal to 7.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.rds_db_instance_backup_retention_period_less_than_7
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.rds_db_instance_backup_retention_period_less_than_7 --share
SQL
This control uses a named query:
select arn as resource, case when backup_retention_period < 7 then 'alarm' else 'ok' end as status, title || ' backup retention period set to ' || backup_retention_period || '.' as reason , region, account_idfrom aws_rds_db_instance;