Skip to content

Commit

Permalink
add profile param var.aws_profile to aws ecr get-login-password cmd (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
semanticdreamer authored Feb 13, 2024
1 parent 2f1908d commit e749b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/terraform/aws/lambda/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ resource "null_resource" "configure_docker" {
always_run = timestamp()
}
provisioner "local-exec" {
command = "aws ecr get-login-password --region ${var.aws_region} | docker login --username AWS --password-stdin ${data.aws_caller_identity.current.account_id}.dkr.ecr.${var.aws_region}.amazonaws.com"
command = "aws ecr get-login-password --region ${var.aws_region} --profile ${var.aws_profile} | docker login --username AWS --password-stdin ${data.aws_caller_identity.current.account_id}.dkr.ecr.${var.aws_region}.amazonaws.com"
}
depends_on = [
aws_ecr_repository.buz_repository
Expand Down

0 comments on commit e749b40

Please sign in to comment.