@nearst/gatsby-source-dynamodb

0.0.2 • Public • Published

Forked from https://github.com/wmlutz/gatsby-source-dynamodb

Gatsby

gatsby-source-dynamodb

This module helps you pull your AWS dynamodb account using IAM credentials. The inspiration was designed to assist connecting private tables from AWS Amplify for public-facing sites.

To install:

yarn add gatsby-source-dynamodb

(or npm install --save gatsby-source-dynamodb)

Then add the config to your gatsby-config.js:

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-source-dynamodb',
      options: {
        typeName: '<INPUT_GRAPHQL_TYPE_NAME_HERE>',
        accessKeyId: '<AWS_ACCESS_KEY_ID>',
        secretAccessKey: '<AWS_SECRET_ACCESS_KEY>',
        region: '<AWS_REGION>',
        params: {
          TableName : "<TABLE_NAME>",
          // OTHER PARAMS HERE
        }
      }
    },
  ],
};

AWS CREDENTIALS

It is strongly recommended that credentials are stored in environment variables.

Helpful links

Package Sidebar

Install

npm i @nearst/gatsby-source-dynamodb

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

3.62 kB

Total Files

4

Last publish

Collaborators

  • joeleg
  • nearst-owner
  • tschoffelen
  • nearstreadonly
  • hannah2503
  • starsuit
  • martonveto