traintocode

Basic Lambda

Writing The Back End

Let's start with the back end code. This will be written in Typescript and will run on AWS Lambda. On the right is a function handler for an AWS Lambda function in Typescript.

Type event. into the editor and explore the properties available to your Lambda function when it is called over HTTP.

Exercise
Modify the handler.ts function to read a property from the HTTP request body called subject. Print the subject to the console inside your function.

Ask me anything you need to know about editing the lambda on the right or finding the subject field in the request body.

    You cannot do the coding exercises on this device, visit this page on a larger screen.
    handler.ts
    Loading...