diff --git a/remediations/proposed/28735475579-1/3-aws-finops-unattached-volume-vol-0ab197e934110fcc9/finding.json b/remediations/proposed/28735475579-1/3-aws-finops-unattached-volume-vol-0ab197e934110fcc9/finding.json new file mode 100644 index 0000000..694bae2 --- /dev/null +++ b/remediations/proposed/28735475579-1/3-aws-finops-unattached-volume-vol-0ab197e934110fcc9/finding.json @@ -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-0ab197e934110fcc9' AND status = 'available'\n", + "sql_query": "DELETE FROM aws.ec2.volumes WHERE region = 'ap-southeast-2' AND VolumeId = 'vol-0ab197e934110fcc9'\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:58:02.456Z", + "size": "1", + "status": "available", + "volumeId": "vol-0ab197e934110fcc9", + "volumeType": "gp2", + "region": "ap-southeast-2", + "category": "waste", + "estimated_monthly_usd": 0.1 + } +} diff --git a/remediations/proposed/28735475579-1/3-aws-finops-unattached-volume-vol-0ab197e934110fcc9/preflight.sql b/remediations/proposed/28735475579-1/3-aws-finops-unattached-volume-vol-0ab197e934110fcc9/preflight.sql new file mode 100644 index 0000000..20f71aa --- /dev/null +++ b/remediations/proposed/28735475579-1/3-aws-finops-unattached-volume-vol-0ab197e934110fcc9/preflight.sql @@ -0,0 +1 @@ +SELECT volumeId FROM aws.ec2_native.volumes WHERE region = 'ap-southeast-2' AND volumeId = 'vol-0ab197e934110fcc9' AND status = 'available' diff --git a/remediations/proposed/28735475579-1/3-aws-finops-unattached-volume-vol-0ab197e934110fcc9/rationale.md b/remediations/proposed/28735475579-1/3-aws-finops-unattached-volume-vol-0ab197e934110fcc9/rationale.md new file mode 100644 index 0000000..f0c74be --- /dev/null +++ b/remediations/proposed/28735475579-1/3-aws-finops-unattached-volume-vol-0ab197e934110fcc9/rationale.md @@ -0,0 +1,7 @@ +This remediation deletes the unattached EBS volume `vol-0ab197e934110fcc9` (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:58:02.456Z (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`). diff --git a/remediations/proposed/28735475579-1/3-aws-finops-unattached-volume-vol-0ab197e934110fcc9/remediation.sql b/remediations/proposed/28735475579-1/3-aws-finops-unattached-volume-vol-0ab197e934110fcc9/remediation.sql new file mode 100644 index 0000000..5ce4a40 --- /dev/null +++ b/remediations/proposed/28735475579-1/3-aws-finops-unattached-volume-vol-0ab197e934110fcc9/remediation.sql @@ -0,0 +1 @@ +DELETE FROM aws.ec2.volumes WHERE region = 'ap-southeast-2' AND VolumeId = 'vol-0ab197e934110fcc9'