From ddea4ebc48c61f64cab9ee5c901fc0d61b133878 Mon Sep 17 00:00:00 2001 From: tajewole-moj Date: Mon, 23 Oct 2023 16:11:26 +0100 Subject: [PATCH] reduce the count to 1 --- terraform/environments/apex/modules/lambda/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/environments/apex/modules/lambda/main.tf b/terraform/environments/apex/modules/lambda/main.tf index 3ee356574a2..6ff47f66a28 100644 --- a/terraform/environments/apex/modules/lambda/main.tf +++ b/terraform/environments/apex/modules/lambda/main.tf @@ -17,7 +17,7 @@ resource "aws_security_group" "lambdasg" { } data "archive_file" "lambda_dbsnapshot" { - count = 3 + count = 1 type = "zip" source_file = var.source_file[count.index] output_path = var.output_path[count.index] @@ -25,7 +25,7 @@ data "archive_file" "lambda_dbsnapshot" { resource "aws_lambda_function" "snapshotDBFunction" { - count = 3 + count = 1 filename = var.filename[count.index] function_name = var.function_name[count.index] role = var.role