Put a deployed lambda function on a schedule
Arguments
- lambda_function
character, the name (or tag) of the function. A check is done internally make sure the Lambda exists and fetch its ARN.
- execution_rate
character, the rate to run the lambda function. Can use `rate` or `cron` specification. For details see the official documentation: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule-schedule.html
Examples
# \donttest{
if (interactive()) {
# Make Tidytuesday lambda fetch the Tidytuesday dataset every Wednesday
# at 8 am
schedule_lambda("Tidytuesday3", "cron(0 8 * * Wed)")
}
# }