Control: RDS DB snapshots should be encrypted at rest
Description
Ensure that encryption is enabled for your AWS Relational Database Service (AWS RDS) snapshots.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.rds_db_snapshot_encrypted_at_restSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.rds_db_snapshot_encrypted_at_rest --shareSQL
This control uses a named query:
(select  arn as resource,  case    when storage_encrypted then 'ok'    else 'alarm'  end as status,  case    when storage_encrypted then title || ' encrypted at rest.'    else title || ' not encrypted at rest.'  end as reason    , region, account_idfrom  aws_rds_db_cluster_snapshot)union(select  arn as resource,  case    when encrypted then 'ok'    else 'alarm'  end as status,  case    when encrypted then title || ' encrypted at rest.'    else title || ' not encrypted at rest.'  end as reason    , region, account_idfrom  aws_rds_db_snapshot);