Skip to content

Commit 594fb58

Browse files
committed
Revert "update the branch"
This reverts commit 61a614c.
1 parent 61a614c commit 594fb58

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

terraform/etl/48-lambda-gov-notify-ingestion.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ resource "aws_cloudwatch_event_rule" "govnotify_housing_repairs_trigger_event" {
190190
name = "${local.short_identifier_prefix}govnotify_housing_repairs_trigger_event"
191191
description = "Trigger event for GovNotify Housing API ingestion"
192192
schedule_expression = "cron(0 0 * * ? *)"
193-
is_enabled = local.is_production_environment ? true : false
193+
state = local.is_production_environment ? "ENABLED" : "DISABLED"
194194
tags = module.tags.values
195195
}
196196

terraform/etl/49-lambda-gov-notify-ingestion-customer-services.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ resource "aws_cloudwatch_event_rule" "govnotify_customer_services_trigger_event"
190190
name = "${local.short_identifier_prefix}govnotify_customer_services_trigger_event"
191191
description = "Trigger event for Customer Services GovNotify API ingestion"
192192
schedule_expression = "cron(0 0 * * ? *)"
193-
is_enabled = local.is_production_environment ? true : false
193+
state = local.is_production_environment ? "ENABLED" : "DISABLED"
194194
tags = module.tags.values
195195
}
196196

terraform/etl/49-lambda-gov-notify-ingestion-housing-lbh-communal-repairs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ resource "aws_cloudwatch_event_rule" "govnotify_housing_lbh_communal_repairs_tri
6363
description = "Trigger event for Housing LBH Communal Repairs GovNotify API ingestion"
6464
tags = module.tags.values
6565
schedule_expression = "cron(0 0 * * ? *)"
66-
is_enabled = local.is_production_environment ? true : false
66+
state = local.is_production_environment ? "ENABLED" : "DISABLED"
6767
}
6868

6969
resource "aws_lambda_permission" "allow_cloudwatch_to_call_govnotify_housing_lbh_communal_repairs" {

terraform/etl/50-aws-lambda-export-dynamodb-pitr.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ resource "aws_cloudwatch_event_rule" "mtfh_export_trigger_event" {
172172
name = "${local.short_identifier_prefix}mtfh-export-trigger-event"
173173
description = "Trigger event for MTFH export"
174174
schedule_expression = "cron(0 0 * * ? *)"
175-
is_enabled = local.is_production_environment ? true : false
175+
state = local.is_production_environment ? "ENABLED" : "DISABLED"
176176
tags = module.tags.values
177177
}
178178

terraform/modules/api-ingestion-lambda/10-lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ resource "aws_cloudwatch_event_rule" "run_lambda" {
169169
name_prefix = "${var.lambda_name}-lambda-"
170170
description = "Fires every day at "
171171
schedule_expression = var.lambda_execution_cron_schedule
172-
is_enabled = var.is_production_environment || !var.is_live_environment
172+
state = (var.is_production_environment || !var.is_live_environment) ? "ENABLED" : "DISABLED"
173173
}
174174

175175
resource "aws_cloudwatch_event_target" "run_lambda" {

terraform/modules/copy-from-s3-to-s3/10-lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ resource "aws_cloudwatch_event_rule" "run_s3_copier_lambda_on_glue_job_success"
197197
}
198198
EOF
199199

200-
is_enabled = var.is_live_environment
200+
state = var.is_live_environment ? "ENABLED" : "DISABLED"
201201
}
202202

203203
resource "aws_cloudwatch_event_target" "run_s3_copier_lambda" {

terraform/modules/g-drive-to-s3/10-lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ resource "aws_cloudwatch_event_rule" "ingestion_schedule" {
175175
name_prefix = "g-drive-to-s3-copier-schedule"
176176
description = "Ingestion Schedule"
177177
schedule_expression = var.ingestion_schedule
178-
is_enabled = var.ingestion_schedule_enabled ? true : false
178+
state = var.ingestion_schedule_enabled ? "ENABLED" : "DISABLED"
179179
}
180180

181181
resource "aws_cloudwatch_event_target" "run_lambda" {

terraform/modules/glue-failure-alert-notifications/10-main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ resource "aws_cloudwatch_event_rule" "lambda" {
116116
name = lower("${var.identifier_prefix}${var.lambda_name}")
117117
description = "Event rule for triggering lambda ${var.lambda_name}"
118118
event_pattern = var.cloudwatch_event_pattern
119-
is_enabled = true
119+
state = "ENABLED"
120120

121121
tags = var.tags
122122
}

terraform/modules/set-budget-limit-amount/10-lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ resource "aws_cloudwatch_event_rule" "run_lambda_to_update_budget_once_a_month"
9494
name = "run_lambda_to_update_budget_once_a_month"
9595
description = "triggers the budget update lambda once per month"
9696
schedule_expression = "cron(0 0 1 * ? *)"
97-
is_enabled = false
97+
state = "DISABLED"
9898
}
9999

100100
resource "aws_cloudwatch_event_target" "run_lambda_to_update_budget_once_a_month" {

0 commit comments

Comments
 (0)