Skip to content

Commit

Permalink
try mixing eecr and non-eecr
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Apr 20, 2025
1 parent 6acb857 commit 9c49f3d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions copy_images.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
},
]
}
Expand All @@ -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
Expand Down

0 comments on commit 9c49f3d

Please sign in to comment.