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
  • Define Environment Variables
  • Create Required Folders

Was this helpful?

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

Environment Variables

Define Environment Variables

Let's create environment variables first in order to refer later on.

Open the terminal and type the commands below.

$ ROOTFOLDER=~/src
$ PROJECTNAME=project-one
$ FUNCTIONNAME=function-one
$ WORKSPACE=$ROOTFOLDER/$PROJECTNAME

Create Required Folders

Create all the folders required.

$ mkdir -p $WORKSPACE/$FUNCTIONNAME
$ mkdir $WORKSPACE/.vscode
$ mkdir $WORKSPACE/$FUNCTIONNAME/src
PreviousManual ConfigurationNextPython Setup

Last updated 5 years ago

Was this helpful?