aws-sdk-extra-v3

1.0.3 • Public • Published

aws-ddb-client-extra-v3

GetStarted

npm i --save \
  @aws-sdk/credential-providers \
  @aws-sdk/client-cognito-identity-provider \
  @aws-sdk/lib-dynamodb \
  @aws-sdk/client-dynamodb \
  aws-sdk-extra-v3

DynamoDB DocumentClient Extra

const { fromIni } = require('@aws-sdk/credential-providers');
const { docClient: docClientExtra } = require('aws-sdk-extra-v3');

const { AWS_PROFILE, AWS_REGION } = process.env;

const config = {
  region: AWS_REGION,
  credentials: fromIni({
    profile: AWS_PROFILE,
  }),
};

const docClient = docClientExtra(config);

const res = await docClient.get({
  TableName: '',
  Key: {
    id: '',
  },
});

Readme

Keywords

none

Package Sidebar

Install

npm i aws-sdk-extra-v3

Weekly Downloads

60

Version

1.0.3

License

ISC

Unpacked Size

22.1 kB

Total Files

18

Last publish

Collaborators

  • little78926