Skip to content

Commit

Permalink
3 is not require just one rule for now
Browse files Browse the repository at this point in the history
  • Loading branch information
tajewole-moj committed Oct 18, 2023
1 parent 71daa8e commit f03e4c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/environments/apex/module/lambda/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ resource "aws_cloudwatch_event_rule" "mon_sun" {
}

resource "aws_cloudwatch_event_target" "check_mon_sun" {
count = 3
count = 1
rule = aws_cloudwatch_event_rule.mon_sun.name
arn = "${aws_lambda_function.snapshotDBFunction[0].arn}"
}

resource "aws_lambda_permission" "allow_cloudwatch_to_call_check_mon_sun" {
count = 3
count = 1
statement_id = "AllowExecutionFromCloudWatch"
action = "lambda:InvokeFunction"
function_name = aws_lambda_function.snapshotDBFunction[0].function_name
Expand Down

0 comments on commit f03e4c1

Please sign in to comment.