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 |
dynamoName |
String | Constant initialized as |
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 |
Returns:
Returns the ARN of a TableDescription
- Type
- String