From ad0734db78ec7246ad9632813898fbed45c71607 Mon Sep 17 00:00:00 2001 From: Samuel Adetunji Date: Tue, 22 Oct 2024 18:17:27 -0500 Subject: [PATCH] oops --- terraform/ecr.tf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/terraform/ecr.tf b/terraform/ecr.tf index 7ff4bd6..3568bd5 100644 --- a/terraform/ecr.tf +++ b/terraform/ecr.tf @@ -9,7 +9,6 @@ locals { } } -data "aws_caller_identity" "auth_current" {} data "aws_ssm_parameter" "image_url" { name = "ecr_artifact_url" } @@ -68,7 +67,7 @@ data "aws_iam_policy_document" "registry" { statement { principals { type = "AWS" - identifiers = ["arn:aws:iam::${data.aws_caller_identity.current.account_id}:root"] + identifiers = ["arn:aws:iam::${local.account_id}:root"] } actions = [