Reputation: 3753
I'm new to AWS Lambda (and AWS in general). I need to write some development code for AWS.
Since Lambda functions are billed by execution time and number of requests, I'd like to guarantee that no out-of-control function or route spam would skyrocket costs out of my budget and put me in debt. (It is development code, so I expect there to be mistakes and I don't want them to be expensive ones.)
I know AWS has budget alarms which send you emails, but this is not good enough for me, since it might take days/weeks until I notice a message somewhere.
Is there a way to tell AWS to shut down a service if it is exceeding a budget? I'm looking for something similar to what DigitalOcean does, where you can set a fixed budget.
Upvotes: 1
Views: 425
Reputation: 705
Create a lambda, where its purpose it will be delete lambda's source code deployed (s3 bucket).
Then:
Some like:
Upvotes: 4
Reputation: 8474
There's nothing built-in that allows you to simply declare a budget and stop when you hit it (across any of AWS' services.).
You do have a few 'DIY' options though:
Upvotes: 2