SHIP IT FASTER

The average enterprise on Netlify ships 140 times per week. Where does your team rank?

ContactSign Up
Community Plugin
View plugin on GitHub

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: [],
      },
    },
  ],
};
© 2023 Gatsby, Inc.