Fork me on GitHub

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

Karol Wójcik15:10:11

You have to run: bb hl:native:executable Regarding the agent payloads

👀 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/'),

Karol Wójcik15:10:48

Check the logs.

Karol Wójcik15:10:32

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

Karol Wójcik15:10:58

If on AWS you should definitely check cloudwatch logs

Karol Wójcik15:10:23

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.