たれぱんのびぼーろく

わたしの備忘録、生物学とプログラミングが多いかも

AWS lambda

  • event (1st arg): arguments by caller
  • context (2nd arg): runtime information
  • callback (3rd, optional arg): return information to caller
    • callback(error, results)
      • error: null(success) or any
      • results: must be JSON.stringify compatible

When the callback is called (explicitly or implicitly), AWS Lambda continues the Lambda function invocation until the Node.js event loop is empty.

起動法