turbot/alicloud_thrifty

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

steampipe check 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_id
from
alicloud_ecs_disk;

Tags