From 4d760ce675fa6d38aaba1b59deda025cd89c4cf7 Mon Sep 17 00:00:00 2001 From: Miguel Harmant <98769216+miguelhar@users.noreply.github.com> Date: Mon, 6 Jan 2025 15:45:06 -0500 Subject: [PATCH] Fix calico_image_registry trimmed output (#316) --- modules/infra/submodules/storage/outputs.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/infra/submodules/storage/outputs.tf b/modules/infra/submodules/storage/outputs.tf index 09aa60d8..e8560174 100644 --- a/modules/infra/submodules/storage/outputs.tf +++ b/modules/infra/submodules/storage/outputs.tf @@ -47,7 +47,7 @@ output "info" { ecr = { container_registry = join("/", concat(slice(split("/", aws_ecr_repository.this["environment"].repository_url), 0, 1), [var.deploy_id])) iam_policy_arn = aws_iam_policy.ecr.arn - calico_image_registry = local.supports_pull_through_cache ? "${data.aws_caller_identity.this.id}.dkr.ecr.${var.region}.amazonaws.com/${var.deploy_id}/quay" : "quay.io" + calico_image_registry = local.supports_pull_through_cache ? "${data.aws_caller_identity.this.id}.dkr.ecr.${var.region}.amazonaws.com/${aws_ecr_pull_through_cache_rule.quay[0].ecr_repository_prefix}" : "quay.io" } } }