subscribe

Test and develop AWS lambda functions locally

In this video we build a nodejs lambda function while running and testing it locally.

The lambda function that gets arguments from query params, uses axios to download the html of a website, uses cherio to parse out the title of the page and then saves the html file to S3 and returns a json response back to the user.

We write local tests for the function using mocha and sinon (to create stubs).

The video also covers:

  • creating and deploying lambda functions to AWS
  • setting up an S3 bucket
  • running the lambda function from a public url
  • managing lambda releases
  • setting up github actions to deploy to AWS on 'git push'

⚡️ Source Code