From 9c49f3d4ed75c51bc1b4f47afce1681666607b8c Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Sun, 20 Apr 2025 16:04:29 -0400 Subject: [PATCH] try mixing eecr and non-eecr --- copy_images.tf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/copy_images.tf b/copy_images.tf index aa8e84d..7efe5e5 100644 --- a/copy_images.tf +++ b/copy_images.tf @@ -14,6 +14,8 @@ locals { source_registry = format("%v/%v", local.ent_ecr_source, "quay") source_tag = var.keycloak_tag tag = var.keycloak_tag + source_username = data.aws_ecr_authorization_token.ecr_token.user_name + source_password = data.aws_ecr_authorization_token.ecr_token.password }, { enabled = true @@ -33,6 +35,8 @@ locals { source_registry = format("%v/%v", local.ent_ecr_source, "ironbank") source_tag = var.utilities_tag tag = var.utilities_tag + source_username = data.aws_ecr_authorization_token.ecr_token.user_name + source_password = data.aws_ecr_authorization_token.ecr_token.password }, ] } @@ -50,8 +54,8 @@ module "images" { force_delete = true lifecycle_policy_keep_count = 5 - source_username = data.aws_ecr_authorization_token.ecr_token.user_name - source_password = data.aws_ecr_authorization_token.ecr_token.password + source_username = local.image_config.source_username || "" + source_password = local.image_config.source_password || "" destination_username = data.aws_ecr_authorization_token.token.user_name destination_password = data.aws_ecr_authorization_token.token.password