This message was deleted.
# aws
s
This message was deleted.
b
Can you show some code please?
c
Here you go
b
So in your lambda function, you need to specify the handler property:
Copy code
const ruleReportsFunc = new aws.lambda.Function("ruleReportsFunc", {
    environment: {
       variables: {
          "RULE_REPORT_BUCKET": ruleReports.bucket,
       },
    },
    code: new pulumi.asset.AssetArchive({
       ".": new pulumi.asset.FileArchive("./app"),
    }),
    runtime: "nodejs12.x",
    role: ruleReportsFuncRole.arn,
    handler: "ruleReportsFunc.ruleReportsFunc" // <-- I think this is correct, but you'll need to check
 });
but I'll create a ticket as that's not a very useful error message
👍 1
c
thanks a lot!