"Istanbul": Delete unattached AWS EBS volumes
Scenario: "Istanbul": Delete unattached AWS EBS volumes
Level: Easy
Type: Do
Tags: aws
Access: Public
Description: Finance found orphaned EBS volumes racking up cost in this account. Your job is to find every volume that is not attached to an EC2 instance and delete it.
Do not delete volumes that are attached (in-use). Do not stop or terminate instances.
The AWS CLI is already configured against the local endpoint. Start with:
aws ec2 describe-volumes
Root (sudo) Access: True
Test: Delete every EBS volume that is not attached to an EC2 instance. Attached (in-use) volumes and running instances must remain.
The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.
Time to Solve: 15 minutes.