Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: How can I set a hard limit in my AWS account
3 points by reeeeee on Feb 20, 2023 | hide | past | favorite | 1 comment
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/



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: