Skip to contents

Put a deployed lambda function on a schedule

Usage

schedule_lambda(lambda_function, execution_rate)

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

Value

None, called for its side effect of creating the schedule.

Examples

if (FALSE) { # \dontrun{
  # Make Tidytuesday lambda fetch the Tidytuesday dataset every Wednesday
  # at 8 am
  schedule_lambda("Tidytuesday3", "cron(0 8 * * Wed)")
} # }