Practical walk-through of authoring the lambda function in Cloud9

In this section, let's have a practical walkthrough of creating a lambda function triggered by an API gateway in Cloud9. There are a few caveats to this:

  • We will create a Node.js function using the wizard. We are not using Java/Kotlin since the main aim of this section is to get familiar with the Cloud9 environment. The wizard currently provides templates for Python and Node.js only.
  • We will run the functions locally.
  • We will deploy the lambda functions using the IDE and verify the companion API gateway creation.
  • Developing lambda functions using Cloud9 uses the Serverless Application Model (SAM) (as opposed to the Serverless Framework that we saw in Chapter 8, Scale Your ...

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.