0Pricing
Serverless Backend with AWS Lambda & API Gateway · Lesson

Local Testing and Debugging with SAM CLI

Run and debug your serverless functions on your own machine before deploying. Use sam local to invoke functions, emulate API Gateway, and iterate fast.

Why Test Locally?

Deploying to AWS just to test a change is slow. The SAM CLI emulates Lambda and API Gateway locally using Docker, so you can iterate in seconds.

Prerequisites

Local invocation needs:

  • Docker running
  • The SAM CLI installed
  • A valid template.yaml

All lessons in this course

  1. Introduction to AWS SAM
  2. Defining Serverless Resources
  3. Deploying SAM Applications
  4. Local Testing and Debugging with SAM CLI
← Back to Serverless Backend with AWS Lambda & API Gateway