From 3acc685ca84aab3659814772dcae936ebf9a4ddf Mon Sep 17 00:00:00 2001 From: Miguel Harmant <98769216+miguelhar@users.noreply.github.com> Date: Fri, 3 Jan 2025 10:23:34 -0500 Subject: [PATCH] Trim ecr_repository_prefix to aws_ecr_pull_through_cache_rule limitation (#315) --- modules/infra/submodules/storage/ecr.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/infra/submodules/storage/ecr.tf b/modules/infra/submodules/storage/ecr.tf index d790bfa3..c312f014 100644 --- a/modules/infra/submodules/storage/ecr.tf +++ b/modules/infra/submodules/storage/ecr.tf @@ -28,7 +28,7 @@ resource "aws_ecr_repository" "this" { resource "aws_ecr_pull_through_cache_rule" "quay" { count = local.supports_pull_through_cache ? 1 : 0 - ecr_repository_prefix = "${var.deploy_id}/quay" + ecr_repository_prefix = "${substr(var.deploy_id, 0, 24)}/quay" upstream_registry_url = "quay.io" }