Norman Khine
03/10/2021, 3:17 PMSeth Geoghegan
03/10/2021, 3:25 PMSeth Geoghegan
03/10/2021, 3:26 PMSeth Geoghegan
03/10/2021, 3:26 PMthis.mainQueue = new sqs.Queue(this, "MainQueue", {
deadLetterQueue: {
maxReceiveCount: 1,
queue: new sqs.Queue(this, "DeadLetterQueue")
}
});
this.webhookQueue = new sst.Queue(this, "WebhookQueue", {
consumer: myWebhookHandler,
sqsQueue: this.mainQueue
});
Norman Khine
03/10/2021, 3:26 PMFrank
Frank
sst.Function
and sst.Queue
construct and do something like:
const queue = new sst.Queue(this, "FunctionDLQ");
const lambda = new sst.Function(this, "Function", {
handler: "src/lambda.main",
deadLetterQueue: queue.sqsQueue,
});
Norman Khine
03/10/2021, 7:51 PM