Skip to content

An example invoking lamda function from Amazon AWS javascript SDK

Notifications You must be signed in to change notification settings

becual/invoke-lamda-from-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example invoking AWS Lamda function from NodeJS AWS sdk

Instructions (assuming you are in repo root directory)

Installing dependencies

$ yarn 
# or  with npm
$ npm install

You must create a file with .env name where we set our env vars (using dot env a dev dependency) replace with your own params

$ echo ACCESS_KEY_ID=[YOU_AMAZON_ACCESS_KEY] >> .env
$ echo SECRET_ACCESS_KEY=[YOU_AMAZON_SECRET_ACCESS_KEY] >> .env
$ echo LAMDA_FUNCTION_NAME=[THE_AMAZON_AWS_LAMBDA_FUNCTION_NAME_THAT_YOU_WANT_CALL] >> .env

Run the code

$ yarn start 
# or with npm
$ npm start

About

An example invoking lamda function from Amazon AWS javascript SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published