Hacker News new | past | comments | ask | show | jobs | submit login

> In 2021, anyone who comes across this question may benefit to know that AWS console now provides an empty button.

source : https://stackoverflow.com/a/67834172




According to the article the empty button still calls LIST per 1000 objects. So if the guy in the SO thread has 2B object this one click would still cost him ~$10k ??


LIST requests are priced by the 1000. And are priced the same at all storage classes. My estimate is that it would cost him $1 to click that button.

  2M LIST requests =  (2B objects / 1000 per LIST)
  $1 = (2M / 1000) × $0.005
At least that's my reading of the Pricing page for US East (Ohio).


Ah ok. That would at least make more sense.


> Within the last year, AWS added a handy Empty button to the S3 console when viewing a bucket. You can click that button and watch the S3 console make API calls on your behalf.

> Here's what it does: It calls a LIST on the bucket, pagination through the objects in the bucket 1000 at a time. It calls a DeleteObjects API method, deleting 1000 at a time.

> The cost is 1 API LIST call per 1000 objects in the bucket. Delete operations are free, so there's no extra cost there.

source: I read the article.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: