9

First of all, I'm not very used to AWS nor DevOps/admin stuff, but want to learn. So I set up an EC2 instance and attached an EBS volume (15 Gb) some months ago, for testing something during a few days.

Then I realize that the monthly charge was full (EC2 + EBS) because I left the instance active, so I detached the volume and stopped the instance and EC2 instance did not charge anymore.

But now, I see that EBS volume is still charging 1.5 USD/month, even when it is detached. Should I delete the volume to avoid any charge? or there is any sort of stop or disable for volumes?

gustavovelascoh
  • 203
  • 1
  • 6
  • 1
    Unrelated, but to future visitors: If you have had trouble understanding what exactly each AWS service was, I found this post highly helpful: https://www.expeditedssl.com/aws-in-plain-english – I.Am.A.Guy Nov 21 '18 at 16:42

3 Answers3

20

You're always charged for EBS volumes because that data is occupying space on physical storage somewhere, even if it is not attached to a running instance.

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
14

In addition to the other answer, you can take a Snapshot of the volume, which stores the data in S3, a cheaper storage option. You can then restore the snapshot to an EBS volume in the future when you want to access the disk.

See Amazon EC2 terminology - AMI vs. EBS vs. Snapshot vs. Volume for more info on the specifics.

You can simply right-click the EBS volume in the AWS Web Console, and then click "Create Snapshot". After this snapshot is created, you can delete the EBS volume. Of course, I'd test restoring the snapshot and using the restored volume before deleting your EBS volume for good.

ivan_pozdeev
  • 353
  • 4
  • 13
zymhan
  • 1,351
  • 1
  • 14
  • 30
5

Should I delete the volume to avoid any charge? or there is any sort of stop or disable for volumes?

There is a delete on termination flag for the attached EBS volumes If this is set, when the instance is terminated the associated EBS volume is destroyed

You can set this flag when setting up a EC2 in the console or can use the aws ec2 modify-instance-attribute CLI command

Vorsprung
  • 183
  • 6