deploySqs

Exports an async function that deploys our S3 bucket which holds our waiting rooms assets

Source:

(require("deploySqs"))(region, sqsName, dlqARN) → {String}

Source:

Exports deploySqs

Parameters:
Name Type Description
region String

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

sqsName String

Constant beekeeper-${PROFILE_NAME}-sqs

dlqARN String

Constant returned from deployDlq.js

Returns:

Returns a URL referring to the SQS created by this module.

Type
String

Methods

(async, inner) createSQS(sqs, sqsName, dlqARN) → {String}

Source:

Function creates the SQS queue. Of note is the use of batching 10 messages at a time and the VisibilityTimeout of 60 seconds which matches the amount of time our post queue Lambda needs to do its work.

Parameters:
Name Type Description
sqs SQSClient

Constant looks like new SQSClient({ region })

sqsName String

Constant beekeeper-${PROFILE_NAME}-sqs

dlqARN String

Constant returned from deployDlq.js

Returns:

Returns the URL of the SQS queue

Type
String