Skip to content

Commit

Permalink
Few changes to ECS tf file
Browse files Browse the repository at this point in the history
  • Loading branch information
Valswyn-NHS committed Nov 18, 2024
1 parent f38ee10 commit ac44eea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions terraform/ecs_batch_processor_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit ac44eea

Please sign in to comment.