Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"run_id": "28735475579",
"target": "finops-aws",
"provider": "aws",
"check_id": "aws-finops-unattached-volume",
"check_file": "finops-aws/unattached-volumes.yaml",
"check_name": "Unattached EBS volumes",
"query": "SELECT volumeId, size, status, AvailabilityZone, volumeType, createTime\nFROM aws.ec2_native.volumes\nWHERE region = 'ap-southeast-2'",
"severity": "LOW",
"category": "waste",
"kind": null,
"region": "ap-southeast-2",
"suggested_remediation": {
"type": "delete",
"tool": "stackql",
"preflight_query": "SELECT volumeId FROM aws.ec2_native.volumes WHERE region = 'ap-southeast-2' AND volumeId = 'vol-0626c233d468aaaf0' AND status = 'available'\n",
"sql_query": "DELETE FROM aws.ec2.volumes WHERE region = 'ap-southeast-2' AND VolumeId = 'vol-0626c233d468aaaf0'\n",
"command": null,
"description": "Delete the unattached EBS volume (snapshot first if its data may be needed)."
},
"fields": {
"AvailabilityZone": "ap-southeast-2a",
"createTime": "2026-01-09T02:43:48.426Z",
"size": "1",
"status": "available",
"volumeId": "vol-0626c233d468aaaf0",
"volumeType": "gp2",
"region": "ap-southeast-2",
"category": "waste",
"estimated_monthly_usd": 0.1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT volumeId FROM aws.ec2_native.volumes WHERE region = 'ap-southeast-2' AND volumeId = 'vol-0626c233d468aaaf0' AND status = 'available'
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This remediation deletes the unattached EBS volume `vol-0626c233d468aaaf0` (1 GiB, `gp2`) in availability zone `ap-southeast-2a` of region `ap-southeast-2`. The volume is reported as `available` (i.e. not attached to any instance), and the preflight query re-confirms `status = 'available'` immediately before the `DELETE` runs, so an in-use volume will not be removed.

Confidence: **high** — the finding is a deterministic FinOps waste check and the preflight guard makes the delete idempotent and safe against a race with a re-attach.

Captain's call: this volume is very small (1 GiB) and was created on 2026-01-09T02:43:48.426Z (roughly six months old at time of review), which lowers the blast radius, but the finding carries **no tags or name**, so there is no signal to confirm it is not part of a real workload or a manually-detached data disk. As the remediation description notes, snapshot the volume first if its data may still be needed before approving the delete.

Estimated monthly saving: **$0.1/month** (from `.fields.estimated_monthly_usd`).
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DELETE FROM aws.ec2.volumes WHERE region = 'ap-southeast-2' AND VolumeId = 'vol-0626c233d468aaaf0'