serverless-plugin-lambda-dead-letter
serverless-plugin-lambda-dead-letter copied to clipboard
Short hand syntax should support FIFO queues
SQS recently added support for 'fifo' queues.
If Cloudformation supports this perhaps the plugin can support it to. Use a regex match .fifo$ to see if the queue name ends with .fifo.
If the queue name ends with .fifo then create a fifo queue by:
- Set attribute:
FifoQueue: true? - Consider setting
ContentBasedDeduplication: trueor what ever the default queue attributes on when you create a fifo queue on the AWS web ui console.
-
[x] Determine the default fifo queue attributes
-
[x] Determine if Cloudformation supports this what what the syntax looks like
-
[ ] During compilation time determine if the queue name matches the fifo format
-
[ ] Create the queue with the default fifo attributes if it should be a fifo queue.
Potential syntax
# 'functions' in serverless.yml
functions:
createUser: # Function name
handler: handler.createUser # Reference to function 'createUser' in code
deadLetter:
sqs: createUser-dl-queue.fifo
FIFO queues are not support by Cloudformation at this time. Once this is added to CF we can fix this.
It is now: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html
@gmetzker any work going into this plugin for support of fifo queues ?
Hi! Same here, I would really like to use this plugin using FIFO queues. Any plan to update it?
There's a real need to support FIFO for DLQ