turbot/alicloud_thrifty
Loading controls...

Control: Unattached disks should be removed

Description

Unattached disks are charged by Alicloud, they should be removed unless there is a business need to retain them.

Usage

Run the control in your terminal:

powerpipe control run alicloud_thrifty.control.ecs_disk_unattached

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run alicloud_thrifty.control.ecs_disk_unattached --share

Steampipe Tables

SQL

select
arn as resource,
case
when status = 'Available' then 'alarm'
else 'ok'
end as status,
case
when status = 'Available' then title || ' has no attachment.'
else title || ' has attachment.'
end as reason,
account_id,
region
from
alicloud_ecs_disk;

Tags