News for hackers. Stuff that matters.
Re:Please fix the AWS free tier before somebody gets hurt by jonas21 on Wednesday May 05, 2021 @02:00AM (#27046696)
You can write a cloud function to automatically run when you go over the budget and shut down billing. They provide code for doing so in the docs:

https://cloud.google.com/billing/docs/how-to/notify#cap_disa...

I'm not sure if that's what you meant by "manually catching a pubsub" -- you have to manually set up the script once, but it will run automatically when triggered.

Re:Please fix the AWS free tier before somebody gets hurt by unilynx on Wednesday May 05, 2021 @03:08AM (#27047019)
If we're talking about protecting users still trying to learn the cloud, what if they mess up the setup of this cloud function?
Re:Please fix the AWS free tier before somebody gets hurt by dividedbyzero on Wednesday May 05, 2021 @05:21AM (#27047828)
It's worse – for us, budget alerts often arrive several hours after the fact, when you already might have burned lots of money.
Re:Please fix the AWS free tier before somebody gets hurt by kaishiro on Wednesday May 05, 2021 @02:06AM (#27046727)
Yes, well aware. I'm not sure if you actually looked at the code on that page but you have to catch the pub sub in the deployed cloud function in order to shut down billing on the project/account. This is precisely what I was referring to.
Re:Please fix the AWS free tier before somebody gets hurt by jsmith99 on Wednesday May 05, 2021 @04:00AM (#27047325)
AWS has that too - you can trigger actions on budget alerts such as stopping activity https://aws.amazon.com/blogs/aws-cost-management/get-started...
Re:Please fix the AWS free tier before somebody gets hurt by watt on Wednesday May 05, 2021 @05:06AM (#27047738)
What we need, a function that is AWS maintained and supported, that basically is AWS responsibility - that if it did not work - failed to shut down service that was consuming all the budget, they eat the cost.