From a22c0344c1b336be4e163c178fd37b65eb160e17 Mon Sep 17 00:00:00 2001 From: Jim <58939809+jamesrwarren@users.noreply.github.com> Date: Tue, 3 Dec 2024 15:19:10 +0000 Subject: [PATCH] turn off zero activity (#1756) --- terraform/environment/region/cloudwatch_scheduled_events.tf | 1 + .../environment/region/cloudwatch_scheduled_events_checks.tf | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/terraform/environment/region/cloudwatch_scheduled_events.tf b/terraform/environment/region/cloudwatch_scheduled_events.tf index 89bd1660ea..8d8452e368 100644 --- a/terraform/environment/region/cloudwatch_scheduled_events.tf +++ b/terraform/environment/region/cloudwatch_scheduled_events.tf @@ -120,6 +120,7 @@ resource "aws_cloudwatch_event_rule" "delete_zero_activity_users" { description = "Delete zero activity users in ${terraform.workspace}" schedule_expression = "cron(20 6 * * ? *)" tags = var.default_tags + is_enabled = false } resource "aws_cloudwatch_event_target" "delete_zero_activity_users" { diff --git a/terraform/environment/region/cloudwatch_scheduled_events_checks.tf b/terraform/environment/region/cloudwatch_scheduled_events_checks.tf index db310fe11c..916254e721 100644 --- a/terraform/environment/region/cloudwatch_scheduled_events_checks.tf +++ b/terraform/environment/region/cloudwatch_scheduled_events_checks.tf @@ -72,7 +72,8 @@ resource "aws_cloudwatch_event_rule" "delete_zero_activity_users_check" { name = "check-delete-zero-activity-users-${terraform.workspace}" description = "Execute the delete zero activity users check for ${terraform.workspace}" schedule_expression = "cron(12 09 * * ? *)" - is_enabled = var.account.is_production == 1 ? true : false + # is_enabled = var.account.is_production == 1 ? true : false + is_enabled = false } resource "aws_cloudwatch_event_target" "delete_zero_activity_users_check" {