Replies: 2 comments
-
/cc @matejvasek (amazon-lambda), @patriot1burke (amazon-lambda) |
Beta Was this translation helpful? Give feedback.
-
Found this via search - had a similar question when trying handle REST API Gateway events and Step Functions (SFN) events within one project. Trying to add a custom handler for SFN and REST gave the same error in the original post. A workaround is to use two separate Quarkus apps:
This is not desirable because to the same code is needed just invoked in different ways. Moving common functionality to a jar is a lot of extra overhead resulting in 3 projects: 2 functions plus a shared jar. Looking at Anyone else been able to get 1 Lambda function working via API Gateway and via Step Functions? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a project with the AWS Lambda HTTP extension. My goal is to reuse the same codebase to deploy two lambdas, with different handlers. One with the AWS Lambda HTTP extension handler, and one with a custom handler.
With the AWS Lambda extension, we can define multiple handlers with
quarkus.lambda.handler=handler-name
. But when trying to do the same withquarkus-amazon-lambda-http
, I've got a build error :Caused by: io.quarkus.builder.BuildException: Build failure: Multiple handler classes. You have a custom handler class and the AWS Lambda HTTP extension. Please remove one of them from your deployment.
So my question is why isn't that possible ?
Beta Was this translation helpful? Give feedback.
All reactions