Skip to content

Commit

Permalink
MLPAB-2408 move schedule to hourly
Browse files Browse the repository at this point in the history
  • Loading branch information
acsauk committed Oct 16, 2024
1 parent 696b809 commit 61ba9f2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ module "schedule_runner" {
}
}

resource "aws_scheduler_schedule" "schedule_runner_twenty_minutes" {
resource "aws_scheduler_schedule" "schedule_runner_hourly" {
name = "schedule-runner-hourly"
schedule_expression = "rate(20 minute)"
description = "Runs every 20 minutes"
schedule_expression = "rate(1 hour)"
description = "Runs every hour"

flexible_time_window {
mode = "OFF"
Expand Down Expand Up @@ -141,7 +141,7 @@ resource "aws_lambda_permission" "allow_cloudwatch_scheduler_to_call_schedule_ru
function_name = module.schedule_runner.lambda.function_name
principal = "events.amazonaws.com"
source_account = data.aws_caller_identity.current.account_id
source_arn = aws_scheduler_schedule.schedule_runner_twenty_minutes.arn
source_arn = aws_scheduler_schedule.schedule_runner_hourly.arn
provider = aws.region
}

Expand Down

0 comments on commit 61ba9f2

Please sign in to comment.