File tree Expand file tree Collapse file tree 11 files changed +23
-20
lines changed
Expand file tree Collapse file tree 11 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 11# Define the directory containing the Docker image and calculate its SHA-256 hash for triggering redeployments
22locals {
3- ack_lambda_dir = abspath (" ${ path . root } /../lambdas/ack_backend" )
3+ ack_lambda_dir = abspath (" ${ path . root } /../../ lambdas/ack_backend" )
44
55 ack_lambda_files = fileset (local. ack_lambda_dir , " **" )
66
@@ -21,7 +21,7 @@ resource "aws_ecr_repository" "ack_lambda_repository" {
2121module "ack_processor_docker_image" {
2222 source = " terraform-aws-modules/lambda/aws//modules/docker-build"
2323 version = " 8.1.0"
24- docker_file_path = " ./ack_backend/Dockerfile"
24+ docker_file_path = " .. /ack_backend/Dockerfile"
2525 create_ecr_repo = false
2626 ecr_repo = aws_ecr_repository. ack_lambda_repository . name
2727 ecr_repo_lifecycle_policy = jsonencode ({
@@ -43,7 +43,7 @@ module "ack_processor_docker_image" {
4343
4444 platform = " linux/amd64"
4545 use_image_tag = false
46- source_path = abspath (" ${ path . root } /../lambdas" )
46+ source_path = abspath (" ${ path . root } /../../ lambdas" )
4747 triggers = {
4848 dir_sha = local.ack_lambda_dir_sha
4949 shared_dir_sha = local.shared_dir_sha
Original file line number Diff line number Diff line change 11# Define the directory containing the Docker image and calculate its SHA-256 hash for triggering redeployments
22locals {
3- batch_processor_filter_lambda_dir = abspath (" ${ path . root } /../batch_processor_filter" )
3+ batch_processor_filter_lambda_dir = abspath (" ${ path . root } /../../ batch_processor_filter" )
44 batch_processor_filter_lambda_files = fileset (local. batch_processor_filter_lambda_dir , " **" )
55 batch_processor_filter_lambda_dir_sha = sha1 (join (" " , [for f in local . batch_processor_filter_lambda_files : filesha1 (" ${ local . batch_processor_filter_lambda_dir } /${ f } " )]))
66}
@@ -17,6 +17,7 @@ resource "aws_ecr_repository" "batch_processor_filter_lambda_repository" {
1717module "batch_processor_filter_docker_image" {
1818 source = " terraform-aws-modules/lambda/aws//modules/docker-build"
1919 version = " 8.1.0"
20+ docker_file_path = " ../Dockerfile"
2021
2122 create_ecr_repo = false
2223 ecr_repo = aws_ecr_repository. batch_processor_filter_lambda_repository . name
Original file line number Diff line number Diff line change 11locals {
2- delta_lambda_dir = abspath (" ${ path . root } /../delta_backend" )
2+ delta_lambda_dir = abspath (" ${ path . root } /../../ delta_backend" )
33 delta_files = fileset (local. delta_lambda_dir , " **" )
44 delta_dir_sha = sha1 (join (" " , [for f in local . delta_files : filesha1 (" ${ local . delta_lambda_dir } /${ f } " )]))
55 function_name = " delta"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ resource "aws_ecs_cluster" "ecs_cluster" {
55
66# Locals for Lambda processing paths and hash
77locals {
8- processing_lambda_dir = abspath (" ${ path . root } /../recordprocessor" )
8+ processing_lambda_dir = abspath (" ${ path . root } /../../ recordprocessor" )
99 processing_path_include = [" **" ]
1010 processing_path_exclude = [" **/__pycache__/**" ]
1111 processing_files_include = setunion ([for f in local . processing_path_include : fileset (local. processing_lambda_dir , f)]... )
@@ -29,7 +29,7 @@ module "processing_docker_image" {
2929 source = " terraform-aws-modules/lambda/aws//modules/docker-build"
3030 version = " 8.1.0"
3131
32- docker_file_path = " Dockerfile"
32+ docker_file_path = " ../ Dockerfile"
3333 create_ecr_repo = false
3434 ecr_repo = aws_ecr_repository. processing_repository . name
3535 ecr_repo_lifecycle_policy = jsonencode ({
Original file line number Diff line number Diff line change 11# Define the directory containing the Docker image and calculate its SHA-256 hash for triggering redeployments
22locals {
3- filename_lambda_dir = abspath (" ${ path . root } /../filenameprocessor" )
3+ filename_lambda_dir = abspath (" ${ path . root } /../../ filenameprocessor" )
44 filename_lambda_files = fileset (local. filename_lambda_dir , " **" )
55 filename_lambda_dir_sha = sha1 (join (" " , [for f in local . filename_lambda_files : filesha1 (" ${ local . filename_lambda_dir } /${ f } " )]))
66}
@@ -18,6 +18,7 @@ resource "aws_ecr_repository" "file_name_processor_lambda_repository" {
1818module "file_processor_docker_image" {
1919 source = " terraform-aws-modules/lambda/aws//modules/docker-build"
2020 version = " 8.1.0"
21+ docker_file_path = " ../Dockerfile"
2122
2223 create_ecr_repo = false
2324 ecr_repo = aws_ecr_repository. file_name_processor_lambda_repository . name
Original file line number Diff line number Diff line change 11locals {
2- forwarder_lambda_dir = abspath (" ${ path . root } /../backend" )
2+ forwarder_lambda_dir = abspath (" ${ path . root } /../../ backend" )
33 forwarder_source_path = local. forwarder_lambda_dir
44 forwarder_path_include = [" **" ]
55 forwarder_path_exclude = [" **/__pycache__/**" ]
@@ -24,7 +24,7 @@ module "forwarding_docker_image" {
2424
2525 create_ecr_repo = false
2626 ecr_repo = aws_ecr_repository. forwarder_lambda_repository . name
27- docker_file_path = " batch.Dockerfile"
27+ docker_file_path = " ../ batch.Dockerfile"
2828 ecr_repo_lifecycle_policy = jsonencode ({
2929 rules = [
3030 {
Original file line number Diff line number Diff line change 11# Define the directory containing the Docker image and calculate its SHA-256 hash for triggering redeployments
22locals {
3- id_sync_lambda_dir = abspath (" ${ path . root } /../lambdas/id_sync" )
3+ id_sync_lambda_dir = abspath (" ${ path . root } /../../ lambdas/id_sync" )
44
55 id_sync_lambda_files = fileset (local. id_sync_lambda_dir , " **" )
66
@@ -20,7 +20,7 @@ resource "aws_ecr_repository" "id_sync_lambda_repository" {
2020module "id_sync_docker_image" {
2121 source = " terraform-aws-modules/lambda/aws//modules/docker-build"
2222 version = " 8.1.0"
23- docker_file_path = " ./id_sync/Dockerfile"
23+ docker_file_path = " .. /id_sync/Dockerfile"
2424 create_ecr_repo = false
2525 ecr_repo = aws_ecr_repository. id_sync_lambda_repository . name
2626 ecr_repo_lifecycle_policy = jsonencode ({
@@ -42,7 +42,7 @@ module "id_sync_docker_image" {
4242
4343 platform = " linux/amd64"
4444 use_image_tag = false
45- source_path = abspath (" ${ path . root } /../lambdas" )
45+ source_path = abspath (" ${ path . root } /../../ lambdas" )
4646 triggers = {
4747 dir_sha = local.id_sync_lambda_dir_sha
4848 shared_dir_sha = local.shared_dir_sha
Original file line number Diff line number Diff line change 11locals {
2- lambda_dir = abspath (" ${ path . root } /../backend" )
2+ lambda_dir = abspath (" ${ path . root } /../../ backend" )
33 source_path = local. lambda_dir
44 path_include = [" **" ]
55 path_exclude = [" **/__pycache__/**" ]
@@ -25,7 +25,7 @@ module "docker_image" {
2525
2626 create_ecr_repo = false
2727 ecr_repo = " ${ local . prefix } -operation-lambda-repo"
28- docker_file_path = " lambda.Dockerfile"
28+ docker_file_path = " ../ lambda.Dockerfile"
2929 ecr_repo_lifecycle_policy = jsonencode ({
3030 " rules" : [
3131 {
Original file line number Diff line number Diff line change 11# Define the directory containing the Docker image and calculate its SHA-256 hash for triggering redeployments
22locals {
3- mesh_processor_lambda_dir = abspath (" ${ path . root } /../mesh_processor" )
3+ mesh_processor_lambda_dir = abspath (" ${ path . root } /../../ mesh_processor" )
44 mesh_processor_lambda_files = fileset (local. mesh_processor_lambda_dir , " **" )
55 mesh_processor_lambda_dir_sha = sha1 (join (" " , [for f in local . mesh_processor_lambda_files : filesha1 (" ${ local . mesh_processor_lambda_dir } /${ f } " )]))
66 # This should match the prefix used in the global Terraform
@@ -35,6 +35,7 @@ module "mesh_processor_docker_image" {
3535
3636 source = " terraform-aws-modules/lambda/aws//modules/docker-build"
3737 version = " 8.1.0"
38+ docker_file_path = " ../Dockerfile"
3839
3940 create_ecr_repo = false
4041 ecr_repo = aws_ecr_repository. mesh_file_converter_lambda_repository [0 ]. name
Original file line number Diff line number Diff line change 11# Define the directory containing the Docker image and calculate its SHA-256 hash for triggering redeployments
22locals {
3- redis_sync_lambda_dir = abspath (" ${ path . root } /../lambdas/redis_sync" )
3+ redis_sync_lambda_dir = abspath (" ${ path . root } /../../ lambdas/redis_sync" )
44
55 redis_sync_lambda_files = fileset (local. redis_sync_lambda_dir , " **" )
66
@@ -20,7 +20,7 @@ resource "aws_ecr_repository" "redis_sync_lambda_repository" {
2020module "redis_sync_docker_image" {
2121 source = " terraform-aws-modules/lambda/aws//modules/docker-build"
2222 version = " 8.1.0"
23- docker_file_path = " ./redis_sync/Dockerfile"
23+ docker_file_path = " .. /redis_sync/Dockerfile"
2424 create_ecr_repo = false
2525 ecr_repo = aws_ecr_repository. redis_sync_lambda_repository . name
2626 ecr_repo_lifecycle_policy = jsonencode ({
@@ -42,7 +42,7 @@ module "redis_sync_docker_image" {
4242
4343 platform = " linux/amd64"
4444 use_image_tag = false
45- source_path = abspath (" ${ path . root } /../lambdas" )
45+ source_path = abspath (" ${ path . root } /../../ lambdas" )
4646 triggers = {
4747 dir_sha = local.redis_sync_lambda_dir_sha
4848 shared_dir_sha = local.shared_dir_sha
You can’t perform that action at this time.
0 commit comments