turbot/steampipe-mod-aws-compliance

Control: Attached EBS volumes should have encryption enabled

Description

Because sensitive data can exist and to help protect data at rest, ensure encryption is enabled for your AWS Elastic Block Store (AWS EBS) volumes.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.ebs_attached_volume_encryption_enabled

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
arn as resource,
case
when state != 'in-use' then 'skip'
when encrypted then 'ok'
else 'alarm'
end as status,
case
when state != 'in-use' then volume_id || ' not attached.'
when encrypted then volume_id || ' encrypted.'
else volume_id || ' not encrypted.'
end as reason
, region, account_id
from
aws_ebs_volume;

Tags