Live data from Hacker News

I got pwned by my cloud costs

troyhunt.com

531–540 of 657 posts

Re: I got pwned by my cloud costs

#531
post #494
post #488

Earlier quoted context omitted.

If you're going to have an intermediary proxy that you run, for AWS perhaps use Lightsail. It is price competitive, and includes more bandwidth than Linode/DigitalOcean/Vultr for the price.

You are not allowed to use Lightsail once you use more professional services on AWS atleast per ToS

Do you have a more detailed citation for that? At $DAYJOB we seem to be using Lightsail (for non-cache purposes) along with some "real AWS" resources without a problem,

Re: I got pwned by my cloud costs

#532
post #495

Earlier quoted context omitted.

So that you incur as much downtime risk as possible, obviously. I hate these 'cloud economics' optimizations that people tend to try.

The risk that your service becomes faang popular and you suddenly need unlimited everything and need it immediately? It is possible but highly unlikely. The more likely scenerio is you just continue overpay like a lot of others waiting for the moment. If that moment happens you realize with the sudden popularity your store inventory is sold out so you couldn't profit off of the extra traffic anyhow.

No, downtime risk as in now you have 3 separate systems and organizations that can have unexpected downtime and consequently so will your app.

Re: I got pwned by my cloud costs

#533

Earlier quoted context omitted.

Also the billing alerts is just that an alert. They should have something in place to put a hard cap on monthly spend. That way his free website would go offline when he's spent > $X. As you say they make it hard deliberately. Edit: Turn out Azure have this: https://docs.microsoft.com/en-us/azure/cost-management-billi...

I see there is a spending limit for the "intro" or "preview" plans designed for students, Visual Studio users, and resellers (the "hook" part in "hook, line, and sinker"). Not for actual cloud usage, like an actual pay-as-you-go plan where this would be useful. https://azure.microsoft.com/en-us/support/legal/offer-detail...

A lot of Chinese cloud providers like Aliyun will only allow pay and go, because there’s no way to recursively bill

My own instances go down all the time when I forget to ‘top up’ the account

Re: I got pwned by my cloud costs

#534
post #516

Earlier quoted context omitted.

But... they do implement limits.

As far as I know, they implement billing alerts but, aside from some student and some other limited account types, they're alerts. You'll get an email that you've hit your limit but your bill will continue to go up until you shut things down.

And do note that these alerts are not instant. With Azure, if their backend reports and alerts are timed wrong, you're still on the hook for 2-3 days' worth of costs.

Re: I got pwned by my cloud costs

#535
post #23

That's the typical story. Something goes wrong and it costs you (typically a small company) a lot of money. At that time just nobody is looking at metrics. Even alarms don't help absolutely because they can also be missed. The only thing that would really help were a hard spending limit that stops all services except storage. If your site is important there will be such an amount of user feedback that it is impossibl…

> The only thing that would really help were a hard spending limit that stops all services except storage. Sadly, I haven't found a way to do that with AWS

Kill switches in lambda I believe is possible, running when the alert is triggered

Re: I got pwned by my cloud costs

#536

Earlier quoted context omitted.

The best setup will forever remain Heroku free instance tier with a free Pingdom account providing traffic to keep it from getting shutdown

Free heroku as a maximum number of hours a day. The ping hack isn’t working anymore.

Sorry, that comment want really serious and mostly a dolly example of bizarre cloud pricing hacking

Re: I got pwned by my cloud costs

#537
post #15

Earlier quoted context omitted.

>Every cloud makes this mistake easy! Funny enough...Oracle (OCI) makes it better, you can buy oracle"coins" 1to1 with $ and load your account just with what you think you need.

If Oracle cloud is still shenanigan free in 2 decades, I’ll consider it. Until then, Oracle gets $0 of any budget I’m in charge of.

See you when your a even more inflexible (and old) guy who makes the bet on one horse, look i give a *hit about (or anyone else) oracle, what i care for is migration without problems from one provider to another.

Hard requirement: My image can run on it (freebsd and linux), no proprietary BS, no special stuff, give me vm-"harware" make it fast, make it cheap, make it reliable, that's it..that's it.

And ATM i like oracle hetzner and vultr at most. If one of those change to my disgust i change, no big deal...just some dns rewrite.

Re: I got pwned by my cloud costs

#538
post #107

Don't put Cloudflare in front of a Cloud egress bill. i.e. don't do this: Azure|Amazon > Cloudflare Always use your own proxy where the egress is well within your free tier, i.e. do this: Azure|Amazon > Hetzner|Linode > Cloudflare Why? Because Cloudflare cache is a massively multi-tenant LRU cache and whilst hot files will be cached well (and with Cloudflare Tiered Cache even better - but this itself is a cost) anyth…

Why not use the CDN of the cloud provider you are on? Azure Storage > Azure CDN

Re: I got pwned by my cloud costs

#539
post #47

One thing I hate about the cloud providers is that there isn't an option to set a maximum cost. I would prefer to plug the cable of my side project than just receive an email saying me that next bill is going to be over my cost. I understand not everyone would like to do that, but I would like to have that option.

Oracle has fantastic budget tools. Not just "you've passed your budget", but "you're forecast to pass your budget in 22 days before the month is up". And you can couple it with quotas to create hard budgets. AWS has decent tools in this regard, but it pales compared to Oracle. Azure is a product I've never used with any scale (just small projects), but the fact that it actually costs money to setup alerts is gross (a…

This piqued my interest, but a few quick searches (using a search engine--the Oracle Cloud site search only turned up press releases...), indicate that quotas just prevent you from spinning up new instances. That's helpful, but I was hoping for some sort of way to cap my bill (for hobby projects), even if that requries deleting resources.

Oracle Cloud has an enticing free tier, but I'm too afraid to use it because it requires a credit card and I don't see any way to put a monthly cap on my budget. (I'm sure hobby projects with ~$5 - 10/month budgets isn't their target market, but I can dream :)

Edit to add the page I was reading: https://docs.oracle.com/en/cloud/get-started/subscriptions-c...

Re: I got pwned by my cloud costs

#540
post #6

Earlier quoted context omitted.

Every cloud makes this mistake easy! You have to manually activate billing alerts for everyone because they want you to spend more snd more each month. I am still waiting for a cloud without these dark patterns. But that will never happen because it‘s leaving a big amount of money on the table by not being hostile.

Also the billing alerts is just that an alert. They should have something in place to put a hard cap on monthly spend. That way his free website would go offline when he's spent > $X. As you say they make it hard deliberately. Edit: Turn out Azure have this: https://docs.microsoft.com/en-us/azure/cost-management-billi...

And the alerts are not instant, at least with Azure - they run reports every 24H or so, and execute alerts every 24H or so. So even if you're careful, you can still be on the hook for a couple of days' worth of spend - which could be very expensive.
Post reply on HN