deployDynamo

Exports an async function that deploys the DynamoDB database

Source:

(require("deployDynamo"))(region, dynamoName) → {String}

Source:

Exports deployDynamo

Parameters:
Name Type Description
region String

A constant destructured from the CLI user's answers in deploy.js. Like "us-east-2".

dynamoName String

Constant initialized as beekeeper-${PROFILE_NAME}-ddb

Returns:

Returns the ARN of the table for the DynamoDB

Type
String

Methods

(async, inner) createDynamo(dynamodb, dynamoName) → {String}

Source:

Function that creates the DynamoDB with one attribute, a string "usertoken" and leaves the provisioned Throupt as default at 5 for both Read and Write capacity units.

Parameters:
Name Type Description
dynamodb DynamoDBClient

Looks like 'new DynamoDBClient({ region })`

dynamoName String

Constant initialized as beekeeper-${PROFILE_NAME}-ddb

Returns:

Returns the ARN of a TableDescription

Type
String