# 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](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/api-gateway-invoking-lambda-example.html) in the _AWS SDK for JavaScript v3 Developer Guide_. # Getting started 1. Clone the [AWS Code Examples Repository](https://github.com/awsdocs/aws-doc-sdk-examples) to your local environment. See [the Github documentation](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository) for instructions. 1. 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 ```