Lambda programming errors that could cost you thousands of dollars a day!

Finding out the culprit — a Lambda function!

The daily cost shot up from less than $5 to around $1,400!

Trying to shutdown

Still getting charged!

Disabling the Lambdas

This can happen to you too!

What I wish AWS would do!

  • Allow users to set a hard limit on billing (e.g. Account spending limit on Facebook), after which AWS services would stop serving our requests. (Budgets are not enough, and they should be on by default with at least with a warning at say $200 of spending)
  • Allow prepaid credit, and deduct from this instead for individual accounts and SMEs. This will also be a hard limit which the user does not want to overrun.
  • Charge the credit card in chunks — say every $250 incurred, without waiting for a month end event, and tens of thousands of dollars in accumulated billing. This way at least the bank will block the card and alert the user, even if the person concerned was on an flight when something bad happens.
  • Set the default concurrent execution limit to 5 or 10, and increase it only after an explicit request from a user, so that they would be aware of the possible effects.
  • Have an easily accessible account LockDown button somewhere on the AWS console to stop the chargeable services at once in an emergency
  • I believe something like this can be easily detected with AI capabilities for anomaly detection by AWS itself. I believe its not a difficult thing to trigger an event, where an alert to the user would be issued as a warning, and subsequently a lockdown of the account would occur automatically within an hour or two. For many users like us, a service denial is much preferred than a bill of thousands of dollars :(

Founder and CEO Aayu Technologies LLC & AdroitLogic, Founder of SLAppForge, Inc. Disrupting B2B AS2/EDI and Enterprise Integration with Serverless technology

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to prep for the AWS Security Speciality Exam

Management Theory in a Nutshell

Top benefits Mobile Application Maintenance & Support For Your Business

Building A Creative & Fun API Client In Ruby: A Builder Pattern Variation

REST API Testing In Python

Behavioral Traits of a Tester to succeed in Software Industry

Easily add a Secret to the GitHub workflow file.

Build your own online store and host it for free in AWS.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Asankha Perera

Asankha Perera

Founder and CEO Aayu Technologies LLC & AdroitLogic, Founder of SLAppForge, Inc. Disrupting B2B AS2/EDI and Enterprise Integration with Serverless technology

More from Medium

AWS Lambda Function — Some Real Use Cases

AWS Lambda : Read from S3:Python

How to Deal many Amazon SNS messages with Firehose and Lambda

AWS Glue DynamicFrame transformations with example code and output