Skip to content

Commit

Permalink
Update build.pkr.hcl to include AWS ECR repository information
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Arnold committed Aug 26, 2024
1 parent 5055753 commit 98c0fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ build {
inline = [
"cat ami_id.json",
"cat ami_id.json | jq -r '.builds[0].artifact_id' > ami_id.txt",
"aws ssm put-parameter --name '/image-pipeline/${var.project_name}/image_id' --type 'String' --value $(cat ami_id.json | jq -r '.builds[0].artifact_id' | awk -F: '{ print $NF }') --overwrite"
"aws ssm put-parameter --name '/image-pipeline/${var.project_name}/image_id' --type 'String' --value ${local.aws_account_id}.dkr.ecr.${local.aws_region}.amazonaws.com/${local.dest_docker_repo}/${local.dest_image}:${local.dest_tag} --overwrite"
]
}
}

0 comments on commit 98c0fc2

Please sign in to comment.