File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff 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-
8960resource "aws_scheduler_schedule" "data_collection_ecs" {
9061 count = local. is_sandbox ? 0 : 1
9162 name_prefix = " ${ terraform . workspace } _data_collection_ecs"
You can’t perform that action at this time.
0 commit comments