turbot/aws_compliance

Query: ebs_volume_unused

Usage

powerpipe query aws_compliance.query.ebs_volume_unused

Steampipe Tables

SQL

select
arn as resource,
case
when state = 'in-use' then 'ok'
else 'alarm'
end as status,
case
when state = 'in-use' then title || ' attached to EC2 instance.'
else title || ' not attached to EC2 instance.'
end as reason
, region, account_id
from
aws_ebs_volume;

Controls

The query is being used by the following controls: