Skip to content

Commit

Permalink
remove extra each.key from the target_image value
Browse files Browse the repository at this point in the history
  • Loading branch information
marycrawford committed Jun 11, 2024
1 parent 812ea02 commit 443dd71
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/ecr/docker.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resource "docker_image" "ghcr_image" {
resource "docker_tag" "tag_for_aws" {
for_each = local.images
source_image = docker_image.ghcr_image[each.key].name
target_image = "${aws_ecr_repository.repo[each.key].repository_url}/${each.key}:${local.phdi_version}"
target_image = "${aws_ecr_repository.repo[each.key].repository_url}:${local.phdi_version}"
}

resource "docker_registry_image" "my_docker_image" {
Expand All @@ -26,4 +26,3 @@ resource "docker_registry_image" "my_docker_image" {
sha256_digest = data.docker_registry_image.ghcr_data[each.key].sha256_digest
}
}

0 comments on commit 443dd71

Please sign in to comment.