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 |
dlqARN |
String | Constant returned from |
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 |
sqsName |
String | Constant |
dlqARN |
String | Constant returned from |
Returns:
Returns the URL of the SQS queue
- Type
- String