From f03e4c1d107daefcaca384c8777103c670050c82 Mon Sep 17 00:00:00 2001 From: tajewole-moj Date: Wed, 18 Oct 2023 16:14:06 +0100 Subject: [PATCH] 3 is not require just one rule for now --- terraform/environments/apex/module/lambda/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/environments/apex/module/lambda/main.tf b/terraform/environments/apex/module/lambda/main.tf index 429171ecb57..32bfd7a96c3 100644 --- a/terraform/environments/apex/module/lambda/main.tf +++ b/terraform/environments/apex/module/lambda/main.tf @@ -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