Back to Aws Doc Sdk Examples

JavaScript environment for tutorial using Amazon API Gateway to invoke AWS Lambda functions

javascriptv3/example_code/cross-services/lambda-api-gateway/README.md

latest1.4 KB
Original Source

JavaScript environment for tutorial using Amazon API Gateway to invoke AWS Lambda functions

This is a workspace where you can find an AWS SDK for JavaScript version 3 (v3) tutorial that demonstrates how to use Amazon API Gateway to invoke AWS Lambda functions.

For instructions on implementing this example, see Invoking Lambda with API Gateway in the AWS SDK for JavaScript v3 Developer Guide.

Getting started

  1. Clone the AWS Code Examples Repository to your local environment. See the Github documentation for instructions.

  2. Install the dependencies listed in the [root]/javascriptv3/example_code/cross-services/lambda-api-gateway/package.json.

Note: These include the AWS SDK for JavaScript v3 client modules for the AWS services required in this example, which are @aws-sdk/client-cognito-identity, @aws-sdk/credential-provider-cognito-identity, @aws-sdk/client-dynamodb, @aws-sdk/client-lambda, and*@aws-sdk/client-sns*

They also include third-party Node.js modules, including webpack.

npm install node -g # If using JavaScript, enter 'npm install node -g' instead
cd javascriptv3/example_code/cross-services/lamba-api-gateway
npm install