From 020f65f62707035db49d1d3842b9fafd0b0dd7a3 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Sun, 20 Apr 2025 16:16:57 -0400 Subject: [PATCH] pass it in explicit --- copy_images.tf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/copy_images.tf b/copy_images.tf index 48bfc4c..004b8cb 100644 --- a/copy_images.tf +++ b/copy_images.tf @@ -26,6 +26,8 @@ locals { source_registry = "public.ecr.aws" source_tag = var.postgresql_tag tag = var.postgresql_tag + source_username = data.aws_ecr_authorization_token.token.user_name + source_password = data.aws_ecr_authorization_token.token.password }, { enabled = true @@ -54,8 +56,8 @@ module "images" { force_delete = true lifecycle_policy_keep_count = 5 - source_username = try(local.image_config.source_username, data.aws_ecr_authorization_token.token.user_name) - source_password = try(local.image_config.source_password, data.aws_ecr_authorization_token.token.password) + source_username = try(local.image_config.source_username) + source_password = try(local.image_config.source_password) destination_username = data.aws_ecr_authorization_token.token.user_name destination_password = data.aws_ecr_authorization_token.token.password