from Hacker News

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

by reeeeee on 2/20/23, 9:39 PM with 1 comments

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/

  • by m348e912 on 2/20/23, 10:05 PM

    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.