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.