From ecbb3b088eb11fc4ae348ba04c8f555132b89870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=20Lis=C3=A9?= Date: Wed, 8 Nov 2023 09:07:34 -0800 Subject: [PATCH] 122: Update cronjob entry. (#281) --- terraform/src/nameUpdate.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terraform/src/nameUpdate.tf b/terraform/src/nameUpdate.tf index d11f27c..1084de8 100644 --- a/terraform/src/nameUpdate.tf +++ b/terraform/src/nameUpdate.tf @@ -28,10 +28,11 @@ resource "aws_lambda_alias" "name_update_latest" { function_version = aws_lambda_function.name_update.version } +# Every day at 08:00 UTC (00:00 PDT) = cron(0 8 * * ? *) resource "aws_cloudwatch_event_rule" "name_update_every_midnight" { name = "name-update-every-midnight" description = "Executes nightly" - schedule_expression = "cron(* 0 * * ? *)" + schedule_expression = "cron(0 8 * * ? *)" } resource "aws_cloudwatch_event_target" "name_update_every_midnight" {