Admiral-Piett / goaws

AWS (SQS/SNS) Clone for Development testing
MIT License
779 stars 144 forks source link

Enable redrive policy in config file #192

Closed pswaminathan closed 3 years ago

pswaminathan commented 5 years ago

Currently there is no support for putting a redrive policy in the config file, e.g.

  Queues:
    - Name: failed-messages
    - Name: messages
      RedrivePolicy: '{"deadLetterTargetArn":"arn:aws:sqs:us-west-2:100010001000:failed-messages","maxReceiveCount":10}'
      VisibilityTimeout: 5

This adds support for it by pulling the redrive policy logic into a separate function and calling it when creating queues from the config.

pswaminathan commented 5 years ago

Hi @p4tin — do you have any thoughts on this?

p4tin commented 3 years ago

Your PR has errors in the build!

package math/bits: unrecognized import path "math/bits" (import path does not begin with hostname)

p4tin commented 3 years ago

I have merged #235 which provides this capability.