Skip to content

Commit

Permalink
Trim ecr_repository_prefix to aws_ecr_pull_through_cache_rule limitat…
Browse files Browse the repository at this point in the history
…ion (#315)
  • Loading branch information
miguelhar authored Jan 3, 2025
1 parent d408da1 commit 3acc685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/infra/submodules/storage/ecr.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit 3acc685

Please sign in to comment.