How to find and terminate/delete active EBS ?

0

I have received an email stating that my free tier is almost over and that I will be charged for the EBS I have started. the billing section

In my free tier billing it is shown this Enter image description here

I have followed the video by AWS on "Why am I being charged for EBS when all my instances are stopped?" ( https://www.youtube.com/watch?v=24vEe9LD4OI ). But when I reach EC2-> Elastic Block Store -> Volumes/snapshots, there is nothing shown for the region oregon. active volumes snapshots

please help me

3 Answers
1

Here some tips-

  1. Get List of all Regions where you potentially could have launched EC2/and used EBS
  2. Get list of all Volumes in region
  3. Delete volumes by ID using the region name where the volume exists
  4. Test with --dry-run first before actually deleting This provides a safe way to clean up volumes across all regions

On Cloud Shell one can do

  1. aws ec2 describe-regions --query 'Regions[].RegionName' --output text > regions.txt

  2. for region in $(cat regions.txt); do aws ec2 describe-volumes --region $region --query 'Volumes[].VolumeId' --output text done > volume-ids.txt

Analyze Output CAUTION !!!!! destructive command !!!

  1. for volid in $(cat volume-ids.txt); do aws ec2 delete-volume --region us-east-1 --volume-id $volid done

Example with dry run ( Safe Option) 4. aws ec2 delete-volume --region us-east-1 --volume-id vol-123 --dry-run

AWS
answered 8 months ago
0

Important:

  • If you have ec2 instance stopped but not terminated, you'll see some charge(few cents) for EBS volume.
  • Also, check if there is any EIPs which you missed to release.

Refer Why am I being charged for Amazon EC2 when all my instances were terminated?

Remember, there is a difference between EC2 instance stopped and terminated.

Not applicable to this question particularly, but to find out EBS charges, this can be followed:

  1. Go to Cost Explorer -> Choose Date Range in right pane
  2. Granularity -> Daily
  3. Dimension -> Region

In filter:

  1. Service -> EC2-Other
  2. Usage Type: Type "EBS" in that text box and select all.

This would give you the regions where this charge is coming from.

Next, I'd do is, keep everything same except changing dimension from Region to Usage Type. Keep filters as is.

This way, you'll get to know the region, where this charge is coming from and also, what are the usage type. So far, you'd have known the date, region and usage type, based on this you'd be able to find out the resources that you may need to delete or you may find that these charges are for previous dates and there is no more charge incurring to your account.

If you don't find any clue for any charges in future, I'd suggest you to log a support case under Account and billing category, AWS support would be able to assist you and would help you to get a resolution if at all, these are not legitimate charges.

Hope this helps.

Comment here if you have additional questions, happy to help.

Abhishek

profile pictureAWS
EXPERT
answered 8 months ago
  • Hi. thank you so much for considering.

    but when I open the cost explorer, it tells me that it will take 24 hours to show the panel as I am new to it. is it normal? So, should wait and see if it responds?

0

Your forecast usage is 1GB-per-month. The arithmetic behind this means you could have a 1GB volume that exists continuously for all 30 days of the month, or you could have a 30GB volume that existed for one day and was then deleted, thus spread across a 30 day month it's the equivalent of 1GB per day (there are also other cases, like a 2GB volume existing for 15 days, or 10GB for 3 days, etc.).

Does this sound plausible, as in you provisioned an EC2 instance + EBS storage at the start of the month, worked with it for a day or two, and then terminated it?

Your other two screenshots show that no volumes or snapshots currently exist in the Oregon region, so any charges already incurred won't be added to (and of course, you're in free tier so won't actually be charged for anything).

profile picture
EXPERT
Steve_M
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions