From 7904917736cfea63620bcc975ff639038fa2146d Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Fri, 30 Apr 2021 20:15:04 +0300
Subject: [PATCH] Consistency.

---
 triggers.tf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/triggers.tf b/triggers.tf
index d35c5c5..ca835a7 100644
--- a/triggers.tf
+++ b/triggers.tf
@@ -32,7 +32,7 @@ output "cloudwatch_rule_name" {
 }
 
 resource "aws_cloudwatch_event_target" "schedule" {
-  count = length(local.function_arns)
+  count = length(local.function_alias_arns)
   arn   = local.function_alias_arns[count.index]
   rule  = local.cloudwatch_rule_name
   depends_on = [
-- 
GitLab