Skip to content

Commit e749b40

Browse files
add profile param var.aws_profile to aws ecr get-login-password cmd (#580)
1 parent 2f1908d commit e749b40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy/terraform/aws/lambda/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ resource "null_resource" "configure_docker" {
142142
always_run = timestamp()
143143
}
144144
provisioner "local-exec" {
145-
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"
145+
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"
146146
}
147147
depends_on = [
148148
aws_ecr_repository.buz_repository

0 commit comments

Comments
 (0)