Skip to content

Commit

Permalink
maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Apr 20, 2025
1 parent 66e1638 commit a8fa591
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions copy_images.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ locals {
source_registry = "public.ecr.aws"
source_tag = var.postgresql_tag
tag = var.postgresql_tag
source_username = null
source_password = null
source_username = data.aws_ecr_authorization_token.token.user_name
source_password = data.aws_ecr_authorization_token.token.passwordgst
},
{
enabled = true
Expand Down Expand Up @@ -56,8 +56,8 @@ module "images" {
force_delete = true
lifecycle_policy_keep_count = 5

source_username = !local.image_config.source_username ? data.aws_ecr_authorization_token.token.user_name : ""
source_password = !local.image_config.source_password ? data.aws_ecr_authorization_token.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 a8fa591

Please sign in to comment.