AWS Magic
develop
develop
  • Welcome
  • Lambda
    • Local Lambda Development
      • Prerequisites
      • Starter Kit or Manual?
      • Use Starter Kit
      • Manual Configuration
        • Environment Variables
        • Python Setup
        • Node Setup
        • Source & Config Files
        • Test The Configuration
      • Run Lambda in VSCode
      • Debug Lambda in VSCode
      • Deploy Lambda Function
    • Lambda & API GW
  • TypeScript
    • Promises
Powered by GitBook
On this page
  • Overview
  • High level folder structure

Was this helpful?

  1. Lambda

Local Lambda Development

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

As a developer, I want to be able to develop, run and debug Lambda functions on macOS so that I can deliver code faster.

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
PreviousWelcomeNextPrerequisites

Last updated 5 years ago

Was this helpful?