Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Built in Dead Letter Queue Redrive Policies #85

Closed
henrymgarrett opened this issue Apr 30, 2024 · 1 comment
Closed

Built in Dead Letter Queue Redrive Policies #85

henrymgarrett opened this issue Apr 30, 2024 · 1 comment

Comments

@henrymgarrett
Copy link

henrymgarrett commented Apr 30, 2024

As a user of Stacktape, I would like to be able to create an SQS queue, and dedicated dead letter queue with a specific redrive policy out of the box (without needing to use CloudFormation overrides).

We are currently doing it by creating two separate SQS queues, and inspecting the CloudFormation to figure out the overrides necessary. Example below:

 mainQueue:
    type: sqs-queue
    properties:
    # send SQS messages that failed to process to our DLQ
    overrides:
      MainQueueQueue:
        RedrivePolicy:
          deadLetterTargetArn:
            Fn::GetAtt:
              - 'MainDLQQueue'
              - 'Arn'
          maxReceiveCount: 5

mainDLQQueue:
  type: sqs-queue

Would be nice to have something like:

mainQueue:
    type: sqs-queue
    properties:
       deadLetterQueue:
         redrivePolicy:
             maxReceiveCount: 5
@simi-obs
Copy link

the support for this was added in the recent release. Your use case can be configured like this

 mainQueue:
    type: sqs-queue
    properties:
      redrivePolicy:
        targetSqsQueueName: mainDLQQueue
        maxReceiveCount: 1

mainDLQQueue:
  type: sqs-queue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants