3.2.1 • Published 2 years ago

atlassian-connect-express-dynamodb v3.2.1

Weekly downloads
26
License
MIT
Repository
github
Last release
2 years ago

DynamoDB bindings for atlassian cloud applications

AWS DynamoDB bindings for atlassian-connect-express.

This is useful to host atlassian cloud applications in AWS lambda. One could use a rational DB with AWS, but DynamoDB is better suited for this task.

Installation

To use this library in your atlassian cloud application:

  1. Create a new DynamoDB table to store information about tenants

    TenantTable:
      Type: AWS::DynamoDB::Table
      Properties:
        TableName: TENANT_TABLE
        KeySchema:
          - AttributeName: clientKey
            KeyType: HASH
          - AttributeName: key
            KeyType: RANGE
        AttributeDefinitions:
          - AttributeName: clientKey
            AttributeType: S
          - AttributeName: key
            AttributeType: S
        BillingMode: PAY_PER_REQUEST
        SSESpecification:
          SSEEnabled: true
  2. Install this library

    npm install --save atlassian-connect-express-dynamodb

  3. Add this library as requirement to app.js and register the adapter

    var ac = require('atlassian-connect-express'); // insert after this line
    var adapter = require('atlassian-connect-express-dynamodb');
    ac.store.register("dynamodb", adapter);
  4. Modify config.json to use the dynamodb adapter

        [...]
        "store": {
            "adapter": "dynamodb",
            "table": "tenants",
    
            // optional options
            "connectionTimeout": 2500, // milliseconds
            "timeout": 2500 // milliseconds
            "maxRetries": 4
        },
        [...]

Credentials

This library uses the AWS SDK for nodejs. There are several methods for providing the needed AWS credentials. Consult the AWS documentation for more information.

3.2.1

2 years ago

3.2.0

3 years ago

3.1.3

3 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.0.1

5 years ago