Re:Serverless: A lesson learned the hard way
by autotune on Thursday August 10, 2017 @05:29PM
(#14984493)
Looks like it's already been done, at least for AWS, based on a few Google results (not that I've used/tested any of these):
https://github.com/Teevity/ice https://billgist.com/ http://cloudcheckr.com/
Azure has a feature on their trial account that when you hit your free limit, you can either:
a) go into credit (so they will charge you at end of month)
b) disable services
Maybe AWS/Google also support a hard limit on spending.
All a developer needs to do immediately after adding a credit card to AWS/Azure/GCP would be to create an IAM role with permission to automatically add and track fine-grained billing alarms and notify via email/sms for any potential billing overages.
I think a $60/yr service like this would be useful to protect against future events of bill shock.