You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However when I add my handlers (I gave 2 examples) I walk into two issues:
The lambdas it makes are node 14 while (i think) it should be linux 2. I found a fix for this. You can add: runtime: php-82-fpm or any other php version to make the lambda run the correct env.
The handlers I've made can not be found. I tried various ways of writing the path to the handler but it wont work.
What am I doing wrong here? Serverless creates the correct eventRule and couples the lambda correctly. I can see in cloudwatch that the lambda actually gets fired but the result is always the same: Handler can not be found.
I hope someone can help me out! Thanks in advance :)
The text was updated successfully, but these errors were encountered:
Regarding the 1st point: runtime: php-82 is the correct configuration, yes. That's something I thought was obvious when writing the docs, but actually isn't at all. This is because the EventBridge docs (like SQS and others) have been split up from a long page that told you to use this runtime. It's not the case anymore, so I understand how confusing this is.
TL/DR: the documentation should be fixed, thank you for the report 👍
Regarding the 2nd issue: App/EventBridgeHandlers/ImportVacanciesFromCluen/ImportVacanciesFromCluenHandler isn't a valid class name. You might want to use \ instead of / as the namespace separator.
the documentation states implementing this will create a lambda called events and create an eventRule too:
However when I add my handlers (I gave 2 examples) I walk into two issues:
My example code:
What am I doing wrong here? Serverless creates the correct eventRule and couples the lambda correctly. I can see in cloudwatch that the lambda actually gets fired but the result is always the same: Handler can not be found.
I hope someone can help me out! Thanks in advance :)
The text was updated successfully, but these errors were encountered: