Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Aug 19, 2022
1 parent 277db63 commit e404b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ locals {
repo_parent_name = format("%v", var.application_name)
region = var.region == null ? data.aws_region.current.name : var.region

account_ecr_registry = format("%v.dkr.ecr.%v.amazonaws.com", local.account_id, local.ecr_region)
account_ecr_registry = format("%v.dkr.ecr.%v.amazonaws.com", local.account_id, local.region)
account_ecr = format("%v/%v", local.account_ecr_registry, local.repo_parent_name)

images = { for i in var.image_config : format("%v#%v", i.name, i.tag) =>
Expand All @@ -79,7 +79,7 @@ resource "null_resource" "copy_images" {
command = "${path.module}/bin/copy_image.sh"
environment = {
AWS_PROFILE = var.profile
AWS_REGION = local.ecr_region
AWS_REGION = local.region
SOURCE_IMAGE = each.value.source_full_path
DESTINATION_IMAGE = each.value.dest_full_path
SOURCE_USERNAME = var.source_username == null ? "" : var.source_username
Expand Down

0 comments on commit e404b6f

Please sign in to comment.