Live data from Hacker News

How an empty S3 bucket can make your AWS bill explode

medium.com

11–20 of 118 posts

Re: How an empty S3 bucket can make your AWS bill explode

#11
post #3

uf, aws should definitly not count the requests against a bucket that is not configured for public use. Edit: if they do that, they should make it possible to firewall buckets via ips so that they are only accessible via certain ips

Or at the very least the requester should b charged for the failed auth.

Re: How an empty S3 bucket can make your AWS bill explode

#14
post #11
post #3

uf, aws should definitly not count the requests against a bucket that is not configured for public use. Edit: if they do that, they should make it possible to firewall buckets via ips so that they are only accessible via certain ips

Or at the very least the requester should b charged for the failed auth.

How is that possible? AWS can't bill anyone on the planet.

Re: How an empty S3 bucket can make your AWS bill explode

#15
post #2

I don't use S3, but it's kind of insane that unauthorized requests contribute to your bill... couldn't a bored/malicious actor with a botnet just spam common bucket names?

A bored or malicious actor can also just DDoS your CloudFront endpoint and run up an effectively unlimited bill on your end. That exposure is par for the course with AWS, they don't have a spending hard-stop and at this point they probably never will, you just have to hope that they have mercy and waive the bill if you get a surprise extra few zeroes on the end.

Re: How an empty S3 bucket can make your AWS bill explode

#18
This isn't obviously a scam to me. Cloudflare have guarantees around pricing per request, and I'd expect them to honour it. AWS have different prices. I'd expect them to honour them.

The problem is the cloud priorities availability over cost savings. We used to run our own infrastructure, that would just fall over if it got too many requests. This infrastructure never falls over; it just bills more. I don't know the right way to solve this, other than don't stick your S3 bucket on the public internet.

Re: How an empty S3 bucket can make your AWS bill explode

#19
post #2

I don't use S3, but it's kind of insane that unauthorized requests contribute to your bill... couldn't a bored/malicious actor with a botnet just spam common bucket names?

It's not just "kind of insane", it's completely bananas. Like what the actual fuck?

We really need some kind of regulation to ban predatory cloud pricing.

Re: How an empty S3 bucket can make your AWS bill explode

#20
post #9

A quick answer is to put the bucket behind cloudfront so that the denial is cached, but that's not totally free either. If they actually charge for unauth'd requests that's absurd

That doesn't work, the standard endpoint always remains available.

I assume random names are the only way forward. Unfortunately a bucket name can’t be longer than 63 characters.
Post reply on HN