holy-lambda 2021-10-04

clojure -X:new :template holy-lambda :name com.company/example-lambda :output holy-lambda-example I created the example project. What I do not get is how to produce .holy-lambda/build/latest.zip bb hl:compile makes output.jar also for what are the native-agents-payloads in the example project?

You have to run: bb hl:native:executable https://fierycod.github.io/holy-lambda/#/cli Regarding the agent payloads https://fierycod.github.io/holy-lambda/#/native-backend

馃憤 1
馃憖 1

btw how do I figure out what is wrong when I get

{
  "message": "Internal server error"
}
I'm trying to setup a lambda RestApi
const handler = new lambda.Function(this, "HLCDKExampleLambda", {
      runtime: lambda.Runtime.PROVIDED,
      code: lambda.Code.fromAsset('../lambdas/jira-status/.holy-lambda/build/output.jar'),
      handler: "org.singularity-group.jira-status.core.ExampleLambda",
    });

    const api = new apigateway.RestApi(this, "support-bot-jira-status", {
      restApiName: "Support Bot Jira Status Webhook",
      description: "Send message to discord channels when ticket status changes."
    });

    const SayHelloMethod = new apigateway.LambdaIntegration(handler);

    api.root.addMethod("POST", SayHelloMethod);
    api.root.addMethod("GET", SayHelloMethod);
like this atm edit
code: lambda.Code.fromAsset('../lambdas/jira-status/.holy-lambda/build/latest.zip'),

Check the logs.

I mean where do you get this message? In local environment or on AWS?

If on AWS you should definitely check cloudwatch logs

1. Could you also show the source of your Lambda? 2. Was the native compilation successful?

Ah now it works with native compile + zip path thanks a lot!! - the err was when I tried to make it a docker lambda. Will check cloudwatch logs just to get to know it more.