<@UBX8APK18> could you not pass the `lambda` to th...
# general
s
@breezy-agency-15661 could you not pass the
lambda
to the onSchedule as it accepts a handler something like:
Copy code
const lambda = new aws.lambda.Function("myfunc", {
        code: undefined,
        role: ";)",
        handler: "index.handler",
        runtime: aws.lambda.NodeJS10dXRuntime
    },
    {}
);

aws.cloudwatch.onSchedule("test", "rate(1 minute)", lambda.handler);