Comments (5)
Hi, you're welcome. Had a quick look on my mobile and you are right. The AWS docs also state that your config is valid. The check you are referring to (.includes) should be replaced and check the type first (array or object). I will provide a fix in the coming days and keep you posted.
from serverless-offline-eventbridge.
Hi, just published a beta release with a quick fix to see if it will work in your project. In this case the plugin only handles detail patterns one level deeper than previously. If this works I'll update the plugin later with a more robust solution that can handle all kinds of objects and depts.
https://www.npmjs.com/package/serverless-offline-aws-eventbridge/v/1.4.0-beta.1
from serverless-offline-eventbridge.
Hi @rubenkaiser thanks for the quick response. The beta version does work with the sample I posted!
Some of our other subscriptions are more nested, and those show the same issue. For example:
{
source: ['graph'],
'detail-type': ['update'],
detail: {
trigger: {
// @ts-ignore: this is a valid pattern
name: ['company'],
event: {
data: {
new: {
status: ['archived'],
},
},
},
},
},
},
Please let me know if there is any way I can help!
from serverless-offline-eventbridge.
Hi @nason. Good to see that the first test worked for you. I've just release a new beta version in which I had a go to fixing the more nested subscriptions. In this case I decided to flatten the subscription pattern, as well as the event detail. After that I've check if the event has the right properties.
You can see the solution in this PR (it also has some husky stuff, but you can ignore that)
#13
I think this is a nice generic solution that works very well. Can you check it in your setup?
https://www.npmjs.com/package/serverless-offline-aws-eventbridge/v/1.4.0-beta.2
from serverless-offline-eventbridge.
Fixed by #13
from serverless-offline-eventbridge.
Related Issues (20)
- context.succeed is not a function HOT 1
- `context.succeed` is not a function HOT 1
- Using intrinsic Cloud Formation functions (!GetAtt and !ImportValue) when defining the event bus name HOT 1
- Serverless deploy freezes on moveArtifactsToPackage with 1.6.0 HOT 13
- PayloadTooLargeError: request entity too large HOT 3
- Request: Update serverless-offline peer dependency HOT 1
- Missing support for schedules HOT 9
- Retry attempts break the execution HOT 2
- Cannot find module 'serverless-offline/dist/lambda' HOT 1
- Unclear error message HOT 2
- serverless-offline 9.1.0 Breaking change HOT 10
- Setting up serverless-offline-eventBridge HOT 3
- cron(*/1 * * * ? *) is worked but cron(0/1 * * * ? *) is not worked HOT 2
- Installation errors with serverless-offline ^11 HOT 1
- eventBridge enabled flag is ignored HOT 7
- equals-ignore-case filter not found HOT 2
- Query: Does this package have support for the event bridge scheduler HOT 2
- Event Pattern doesn't support array of objects. HOT 2
- Stepfunction events 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-offline-eventbridge.