Open tchlyah opened 3 years ago
1.22 removed the handler validation when using a template so you can use that route as a workaround. We can't remove it from the non-template yet due to we do the validation to find the base directory to use as the CodeUri for SAM build.
We have discussed exposing that as a field if we can't infer it from the provided handler.
Describe the bug When trying to run or debug a Quarkus Amazon Lambda, either by using QuarkusStreamHandler, or from the produced template file
sam.jvm.yaml
, it refuses to run cause of the Error: Cannot find handler 'io.quarkus.amazon.lambda.runtime.QuarkusStreamHandler::handleRequest' in project.To reproduce
target/sam.jvm.yaml
, or set the Handler toio.quarkus.amazon.lambda.runtime.QuarkusStreamHandler::handleRequest
. =>Error: Cannot find handler 'io.quarkus.amazon.lambda.runtime.QuarkusStreamHandler::handleRequest' in project.
Running the default handler com.amazon.example.ProcessingLambda won't work because it doesn't support Quarkus CDI, as stated in https://quarkus.io/guides/amazon-lambda#create-the-function:
Expected behavior Since the QuarkusStreamHandler is in the classpath, it should accept it and run the function.
Screenshots
Your Environment
Additional context
sam.jvm.yaml
: