Comments (4)
Hello! Is it possible to contribute to this issue? If so, do you have any contributing guidelines?
from serverless-plugins.
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.
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.
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)
- Error upon installing serverless-offline-sqs HOT 1
- [serverless-offline-sqs] Can't create explicit queues on AWS or sqslite
- [serverless-offline-sqs] Uncaught exceptions from SQS handler functions terminates nodejs process
- [serverless-offline-sqs] Support for maximumBatchingWindow HOT 1
- Support removed for node 14; please restore HOT 1
- [serverless-offline-sqs] TypeError: Cannot read property 'debug' of undefined
- support serverless-offline 12
- [serverless-offline-dynamodb-streams] Error: Cannot find module 'serverless-offline/lambda' HOT 3
- Guide for setting up serverless-offline-sqs + serverless-lift + localstack sqs HOT 3
- serverless won't start if serverless-offline-dynamodb-streams table or stream does not exist
- Support of dynamodb event stream filterPatterns HOT 1
- Cannot find module 'source-map-support/register'
- serverless-offline-dynamodb-streams is still using aws-sdk@v2
- serverless offline startup fails due to serverless-offline-kinesis build error
- Severless Offline SQS using AWS SDK v2
- Is this repo still maintained? HOT 1
- [serverless-offline-sqs] Doesn't trigger lambda when new message is added to elasticMQ
- [serverless-offline-sqs] support serverless-offline v13 HOT 1
- serverless-offline running forever
- serverless-offline-sqs breaks when upgrading @aws-sdk from 3.226.0 to 3.556.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-plugins.