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 loginpowerpipe 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, regionfrom alicloud_ecs_disk;