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
  • Open The Project
  • "Transpile" TypeScript
  • Run the Lambda Function

Was this helpful?

  1. Lambda
  2. Local Lambda Development

Run Lambda in VSCode

PreviousTest The ConfigurationNextDebug Lambda in VSCode

Last updated 5 years ago

Was this helpful?

Open The Project

Open Visual Studio Code and open project-one folder.

"Transpile" TypeScript

Press Shift + Command + B and select npm: build - function-one

This will run tsc to transpile all the typescript files under the folder.

Run the Lambda Function

Press shift + command + P and select Tasks: Run Task and then selectnpm: sam - function-one

Final screenshot shows that we are able to run the lambda function from VSCode.