diff --git a/docs/queue.md b/docs/queue.md index 22ffdc0b..b61f0ca6 100644 --- a/docs/queue.md +++ b/docs/queue.md @@ -115,6 +115,8 @@ All queue constructs expose the following variables: - `queueUrl`: the URL of the deployed SQS queue - `queueArn`: the ARN of the deployed SQS queue +- `dlqUrl`: the URL of the deployed SQS dead letter queue +- `dlqArn`: the ARN of the deployed SQS dead letter queue These can be used to reference the queue from other Lambda functions, for example: diff --git a/src/constructs/aws/Queue.ts b/src/constructs/aws/Queue.ts index bb84627e..de935d91 100644 --- a/src/constructs/aws/Queue.ts +++ b/src/constructs/aws/Queue.ts @@ -269,6 +269,8 @@ export class Queue extends AwsConstruct { return { queueUrl: this.queue.queueUrl, queueArn: this.queue.queueArn, + dlqUrl: this.dlq.queueUrl, + dlqArn: this.dlq.queueArn, }; }