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 @@ -86,35 +86,6 @@ resource "aws_lambda_permission" "data_collection_schedule_permission" {
8686 ]
8787}
8888
89- resource "aws_cloudwatch_event_rule" "statistical_report_schedule" {
90- name = " ${ terraform . workspace } _statistical_report_schedule"
91- description = " Schedule for Statistical Report Lambda"
92- schedule_expression = " cron(0 8 ? * MON *)"
93- }
94-
95- resource "aws_cloudwatch_event_target" "statistical_report_schedule_event" {
96- rule = aws_cloudwatch_event_rule. statistical_report_schedule . name
97- target_id = " statistical_report_schedule"
98-
99- arn = module. statistical-report-lambda . lambda_arn
100- depends_on = [
101- module . statistical-report-lambda ,
102- aws_cloudwatch_event_rule . statistical_report_schedule
103- ]
104- }
105-
106- resource "aws_lambda_permission" "statistical_report_schedule_permission" {
107- statement_id = " AllowExecutionFromCloudWatch"
108- action = " lambda:InvokeFunction"
109- function_name = module. statistical-report-lambda . function_name
110- principal = " events.amazonaws.com"
111- source_arn = aws_cloudwatch_event_rule. statistical_report_schedule . arn
112- depends_on = [
113- module . statistical-report-lambda ,
114- aws_cloudwatch_event_rule . statistical_report_schedule
115- ]
116- }
117-
11889resource "aws_scheduler_schedule" "data_collection_ecs" {
11990 count = local. is_sandbox ? 0 : 1
12091 name_prefix = " ${ terraform . workspace } _data_collection_ecs"
You can’t perform that action at this time.
0 commit comments