Settings

Theme

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

3 points by reeeeee 3 years ago · 1 comment · 1 min read


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/

m348e912 3 years ago

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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection