Carlos Daniel
01/11/2022, 4:27 AMinput
, something like:
myLambda:
handler: src/lambdas.main
timeout: 30
events:
- schedule:
rate: rate(1 day)
input:
frequency: "1 day"
- schedule:
rate: rate(1 week)
input:
frequency: "1 week"
- schedule:
rate: rate(1 month)
input:
frequency: "1 month"
Carlos Daniel
01/11/2022, 4:27 AMSam Hulick
01/11/2022, 5:06 AMsst.Function
e.g. const myFunc = new sst.Function(…)
and then each cron can reference that func.
new sst.Cron(this, 'MyScheduler', {
schedule: 'rate(30 minutes)',
job: {
function: myFunc
},
});
Carlos Daniel
01/11/2022, 11:44 AM