The current aws-sdk-js version on AWS Lambda, useful for testing
If you already have the aws-sdk installed as a devDependency, remove it.
npm v3 or later is required (flat dependencies).
npm i -g npm@latest && \
npm r -D aws-sdk && \
npm i -D binoculars/aws-sdk-js-on-lambda
yarn remove aws-sdk && \
yarn add --dev binoculars/aws-sdk-js-on-lambda && \
yarn install --flat
As you normally would...
const AWS = require('aws-sdk');
// or
import AWS from 'aws-sdk';