Local Development

Develop and Debug Lambda functions locally using AWS SAM and Visual Studio Code

Overview

In this document, we will use AWS SAM for local Lambda development using TypeScript. Our choice of IDE will be Visual Studio Code.

You can either follow scripted method or manual steps to understand what is happening.

High level folder structure

Eventually, we will have this folder structure;

- project-one
  - .git
  - .venv
  - .vscode
  - function-one
    - dist
    - node_modules
    - package-lock.json
    - package.json
    - src
      - event.json
      - index.ts
    - template.yaml
    - tsconfig.json

Last updated

Was this helpful?