This message was deleted.
# aws
s
This message was deleted.
m
Hey! I once deployed a Lambda which needed to run on a weekly schedule.
Copy code
const schedule = aws.cloudwatch.onSchedule(
  "lambda-schedule",

  // This expression schedules the event to trigger at:
  // At 00:00,
  // for one or more days of the month,
  // for all months,
  // when it is a Monday,
  // for all years
  "cron(0 0 ? * MON *)",

  lambda
);
You can also trigger the lambda to run when a bucket gets a new file
b
Thanks, I’ll look into that 👍🏻 I did realize in the meantime, though that AWS does not seem to support AWS Lambda function triggers in any automated fashion: https://stackoverflow.com/q/56717199; that obviously might be a reason why Pulumi wouldn’t support them, either… Not far from giving up TBH and manage the triggers manually 😞