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:
steampipe check alicloud_thrifty.control.ecs_disk_unattached
Snapshot and share results via Steampipe Cloud:
steampipe loginsteampipe check --share alicloud_thrifty.control.ecs_disk_unattached
Plugins & 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, region, account_idfrom alicloud_ecs_disk;