https://pulumi.com logo
#general
Title
# general
s

square-rocket-59657

12/13/2019, 2:19 AM
@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);