Skip to content

Commit 3757bcc

Browse files
committed
[PRMT-612] removing data_collection_schedule
1 parent cfbde94 commit 3757bcc

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

infrastructure/schedules.tf

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -57,35 +57,6 @@ resource "aws_lambda_permission" "bulk_upload_report_schedule_permission" {
5757
]
5858
}
5959

60-
resource "aws_cloudwatch_event_rule" "data_collection_schedule" {
61-
name = "${terraform.workspace}_data_collection_schedule"
62-
description = "Schedule for Data Collection Lambda"
63-
schedule_expression = "cron(0 20 ? * SAT *)"
64-
}
65-
66-
resource "aws_cloudwatch_event_target" "data_collection_schedule_event" {
67-
rule = aws_cloudwatch_event_rule.data_collection_schedule.name
68-
target_id = "data_collection_schedule"
69-
70-
arn = module.data-collection-lambda.lambda_arn
71-
depends_on = [
72-
module.data-collection-lambda,
73-
aws_cloudwatch_event_rule.data_collection_schedule
74-
]
75-
}
76-
77-
resource "aws_lambda_permission" "data_collection_schedule_permission" {
78-
statement_id = "AllowExecutionFromCloudWatch"
79-
action = "lambda:InvokeFunction"
80-
function_name = module.data-collection-lambda.function_name
81-
principal = "events.amazonaws.com"
82-
source_arn = aws_cloudwatch_event_rule.data_collection_schedule.arn
83-
depends_on = [
84-
module.data-collection-lambda,
85-
aws_cloudwatch_event_rule.data_collection_schedule
86-
]
87-
}
88-
8960
resource "aws_scheduler_schedule" "data_collection_ecs" {
9061
count = local.is_sandbox ? 0 : 1
9162
name_prefix = "${terraform.workspace}_data_collection_ecs"

0 commit comments

Comments
 (0)