traintocode

Basic Lambda

Writing The Back End

Now it's time to write some back end code! The backend will also 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 function handler to extract the messages array you added to the request body in the previous exercise. Print the messages array to the console inside your main() function.

If you want to deploy this code to AWS Lambda on your own account, this video will show you how.

Otherwise, ask me anything you need to know about editing the lambda on the right to complete the exercise.

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