Skip to content

Ask HN: How can I set a hard limit in my AWS account

3 pointsreeeeee1 comment
On HN

I'm wondering if anyone has found a good way to set a hard limit in AWS. Most sources say that it is not possible [1], and the AWS documentation only shows you how to set alarms and budgets [2]. Is there anyone who has tips and/or tricks on how to prevent overnight disasters that leave you in debt because some serverless function has been consuming too much time/cpu, or spammers found a way to fill up your S3 bucket or databases?

There should be a way to stop all your resources when you reach a certain billing limit, no?

[1] https://www.infoq.com/news/2021/05/aws-billing-limits/ [2] https://aws.amazon.com/getting-started/hands-on/control-your-costs-free-tier-budgets/

Comments

AWS doesn't have a huge incentive to allow you to define hard limits, but with their API, there has to be a third party app or service that allows you to monitor and then turn off services if you pass a defined spend threshold.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.