AWS Lambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume.
This is a workspace where you can find the following AWS SDK for JavaScript v3 AWS Lambda examples.
- Create a table using Lambda function. See documentation.
Note: All code examples are written in ECMAscript 6 (ES6). For guidelines on converting to CommonJS, see JavaScript ES6/CommonJS syntax.
-
Clone the AWS SDK Code Samples repo to your local environment. See the Github documentation for instructions.
-
Install the dependencies listed in the package.json.
Note: These dependencies include the client modules for the AWS services that this example requires, which are @aws-sdk/client-dynamodb, @aws-sdk/client-lambda, @aws-sdk/client-iam, @aws-sdk/client-s3, @aws-sdk/client-dynamoDB, @aws-sdk/client-cognito-identity, @aws-sdk/credential-provider-cognito-identity, and @aws-sdk/client-lambda.
npm install node -g
cd javascriptv3/example_code/lambda
npm install