Coder Social home page Coder Social logo

Comments (4)

GonzaloSaad avatar GonzaloSaad commented on June 24, 2024

Hello! Is it possible to contribute to this issue? If so, do you have any contributing guidelines?

from serverless-plugins.

anaerobic avatar anaerobic commented on June 24, 2024

here's a PR to allow auto-creating queues when you don't actually want to handle those events in a lambda:

https://github.com/CoorpAcademy/serverless-plugins/pull/172/files

functions:
  doStuffAsync:
    handler: src/handlers/doStuffAsync.handler
    events:
      - sqs:
          arn:
            Fn::GetAtt:
              - FifoQueue
              - Arn
  # this is for hacking serverless-offline-sqs to auto-create the DLQ for local development
  offlineAsync:
    handler: src/handlers/offlineAsync.handler
    events:
      - sqs:
          enabled: false
          arn:
            Fn::GetAtt:
              - DeadLetterFifoQueue
              - Arn

it's a little hacky, i know, but it gets the job done

from serverless-plugins.

GonzaloSaad avatar GonzaloSaad commented on June 24, 2024

Right! I did the same as a workaround, I created a "fake" consumer just to make the lib create the DLQ. I wonder why you needed to make code changes for that!
I'll review the PR!

from serverless-plugins.

anaerobic avatar anaerobic commented on June 24, 2024

I needed the code changes to ensure that the fake consumer handler didn't actually consume messages off of SQS, because my use case requires consuming them in a long-running process outside of the serverless stack.

from serverless-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.