Control: Amazon Aurora clusters should have backtracking enabled
Description
This control checks whether Amazon Aurora clusters have backtracking enabled. Backups help you to recover more quickly from a security incident. They also strengthen the resilience of your systems. Aurora backtracking reduces the time to recover a database to a point in time. It does not require a database restore to do so.
Usage
Run the control in your terminal:
powerpipe control run terraform_aws_compliance.control.rds_db_cluster_aurora_backtracking_enabledSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_aws_compliance.control.rds_db_cluster_aurora_backtracking_enabled --shareSQL
This control uses a named query:
select  address as resource,  case    when (attributes_std ->> 'engine') not like any (array ['%aurora%', '%aurora-mysql%']) then 'skip'    when (attributes_std -> 'backtrack_window') is not null then 'ok'    else 'alarm'  end as status,  split_part(address, '.', 2) || case    when (attributes_std ->> 'engine') not like any (array ['%aurora%', '%aurora-mysql%']) then ' not Aurora MySQL-compatible edition'    when (attributes_std -> 'backtrack_window') is not null then ' backtracking enabled'    else ' backtracking disabled'  end || '.' as reason    , path || ':' || start_linefrom  terraform_resourcewhere  type = 'aws_rds_cluster';