Skip to content

Short hand syntax should support FIFO queues #25

@gmetzker

Description

@gmetzker

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: true or what ever the default queue attributes on when you create a fifo queue on the AWS web ui console.
  • Determine the default fifo queue attributes

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions