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

Was this helpful?

  1. Lambda
  2. Local Lambda Development
  3. Manual Configuration

Node Setup

Initialize node project and install node packages.

$ cd $WORKSPACE/$FUNCTIONNAME
$ npm init -y
$ npm install --update aws-sam-local
$ npm install --save-dev typescript
$ npm install @types/node
$ alias tsc='"$WORKSPACE"/"$FUNCTIONNAME"/node_modules/typescript/bin/tsc'
PreviousPython SetupNextSource & Config Files

Last updated 5 years ago

Was this helpful?