-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
@aws-cdk/aws-events-targets@aws-cdk/aws-sqsRelated to Amazon Simple Queue ServiceRelated to Amazon Simple Queue Serviceeffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p1
Description
This is an available feature through the AWS Console already. And is supported in many other target but not SQS: #11612.
Use Case
Use monocdk/aws-events-targets to create DLQ for events-targets as SQS
Proposed Solution
import * as sqs from "@aws-cdk/aws-sqs";
import * as events from "@aws-cdk/aws-events";
import * as targets from "@aws-cdk/aws-events-targets";
const targetSQS = new sqs.Queue(this, 'targetSQS', {
queueName: 'targetSQS',
});
const rule = new events.Rule(this, 'rule', {
eventPattern: {
source: ["aws.ec2"],
},
});
const myDeadLetterQueue = new sqs.Queue(this, 'myDeadLetterQueue');
rule.addTarget(new targets.SqsQueue(targetSQS, {
deadLetterQueue: myDeadLetterQueue
}));
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-events-targets@aws-cdk/aws-sqsRelated to Amazon Simple Queue ServiceRelated to Amazon Simple Queue Serviceeffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p1