I'm trying to follow the guide to upgrade to SST v...
# help
j
I'm trying to follow the guide to upgrade to SST v1.0.2 and I'm stuck on updating my Cron function. I've confirmed that I get the same error with the example from the docs:
Copy code
const scheduled = new sst.Cron(this, "Cron", {
      job: "src/lambda.main",
      cdk: {
        rule: {
          schedule: { minute: "0", hour: "4" },
        },
      },
    });
results in:
Copy code
TypeError: _c._bind is not a function
f
Copy code
import { Schedule } from 'aws-cdk-lib/aws-events';

...
schedule: Schedule.cron({ minute: "0", hour: "4" }),
...
@Jon Holman see if this works
j
Works. Thanks, @Frank