1.0.0 • Published 3 years ago

gatsby-source-aws-dynamodb v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

gatsby-source-aws-dynamodb

A Gatsby source plugin for sourcing data into your Gatsby application from AWS DynamoDB.

Install

npm install gatsby-source-aws-dynamodb

How to Use

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: 'gatsby-source-aws-dynamodb',
      options: {
        // Arbitrary name for the remote schema Query type
        typeName: '<INPUT_GRAPHQL_TYPE_NAME_HERE>',
        // It is strongly recommended that credentials are stored in environment variables
        accessKeyId: '<AWS_ACCESS_KEY_ID>', 
        secretAccessKey: '<AWS_SECRET_ACCESS_KEY>',
        region: '<AWS_REGION>',
        params: {
          TableName : "<TABLE_NAME>",
          // Other params to scan here
        }
      }
    },
  ],
};