1.0.1 • Published 1 year ago

gatsby-source-awsv3-dynamodb v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

gatsby-source-aws-dynamodb

A Gatsby source plugin for sourcing data into your Gatsby application from AWS DynamoDB. It was based on Kodansha's work but updated to AWS JavaScript SDK V3 and other dependencies were updated as well. Also, no credentials or other AWS config values are passed to the dynamodb client. They are instead inferred from the preferred source as described in this article https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html. Finally, I added fallback values if the dynamodb is not reachable. This is very useful if some developer doesn't have full access to the AWS env but still needs to work on a website that uses this plugin.

Install

npm install gatsby-source-awsv3-dynamodb

How to Use

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: "gatsby-source-awsv3-dynamodb",
      options: {
        typeName: "<Gatsby type name>",
        params: {
          TableName: "<Dynamodb table name>",
        },
        fallback: [],
      },
    },
  ],
};