From ac44eea37eae69c1aad35876b616365e0a2b0501 Mon Sep 17 00:00:00 2001 From: Valswyn-NHS Date: Mon, 18 Nov 2024 12:51:39 +0000 Subject: [PATCH] Few changes to ECS tf file --- terraform/ecs_batch_processor_config.tf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/terraform/ecs_batch_processor_config.tf b/terraform/ecs_batch_processor_config.tf index 4ad45309b..62444e01f 100644 --- a/terraform/ecs_batch_processor_config.tf +++ b/terraform/ecs_batch_processor_config.tf @@ -6,11 +6,11 @@ resource "aws_ecs_cluster" "ecs_cluster" { # Locals for Lambda processing paths and hash locals { processing_lambda_dir = abspath("${path.root}/../recordprocessor") - path_include = ["**"] - path_exclude = ["**/__pycache__/**"] - files_include = setunion([for f in local.path_include : fileset(local.processing_lambda_dir, f)]...) - files_exclude = setunion([for f in local.path_exclude : fileset(local.processing_lambda_dir, f)]...) - processing_lambda_files = sort(setsubtract(local.files_include, local.files_exclude)) + processing_path_include = ["**"] + processing_path_exclude = ["**/__pycache__/**"] + processing_files_include = setunion([for f in local.processing_path_include : fileset(local.processing_lambda_dir, f)]...) + processing_files_exclude = setunion([for f in local.processing_path_exclude : fileset(local.processing_lambda_dir, f)]...) + processing_lambda_files = sort(setsubtract(local.processing_files_include, local.processing_files_exclude)) processing_lambda_dir_sha = sha1(join("", [for f in local.processing_lambda_files : filesha1("${local.processing_lambda_dir}/${f}")])) image_tag = "latest" }