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
});
brave-planet-10645
01/27/2021, 6:19 PM
but I'll create a ticket as that's not a very useful error message
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.