From f62280c12aa871362a793901f7daa7074b65044d Mon Sep 17 00:00:00 2001 From: A-Ashiq Date: Fri, 3 May 2024 12:36:04 +0100 Subject: [PATCH] Provide lambda function ARN instead of role ARN to ingestion ECR --- terraform/20-app/ecr.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/20-app/ecr.tf b/terraform/20-app/ecr.tf index af1b8a29..ab6d697c 100644 --- a/terraform/20-app/ecr.tf +++ b/terraform/20-app/ecr.tf @@ -80,7 +80,7 @@ module "ecr_ingestion" { repository_name = "${local.prefix}-ingestion" repository_read_access_arns = ["arn:aws:iam::${var.assume_account_id}:root"] repository_read_write_access_arns = ["arn:aws:iam::${var.tools_account_id}:root"] - repository_lambda_read_access_arns = [module.lambda_ingestion.lambda_role_arn] + repository_lambda_read_access_arns = [module.lambda_ingestion.lambda_function_arn] create_lifecycle_policy = true repository_lifecycle_policy = local.standard_ecr_lifecycle_policy