Skip to content

wmlutz/gatsby-source-dynamodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published