From a6d4d6347e40701abbd04005457b9e80f05ca13a Mon Sep 17 00:00:00 2001 From: Ben Larabie Date: Fri, 23 Aug 2024 11:19:32 -0400 Subject: [PATCH] ecr test --- .../workflows/terragrunt_create_dev_environment.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/terragrunt_create_dev_environment.yml b/.github/workflows/terragrunt_create_dev_environment.yml index 5e55797b6..657e91773 100644 --- a/.github/workflows/terragrunt_create_dev_environment.yml +++ b/.github/workflows/terragrunt_create_dev_environment.yml @@ -61,10 +61,14 @@ jobs: role-session-name: NotifyApiGitHubActions aws-region: "us-east-1" - - name: Login to Amazon ECR Private + - name: Login to Amazon ECR id: login-ecr - uses: aws-actions/amazon-ecr-login@v2 - + run: | + # Get the ECR login password and use it to log in to the ECR registry + result=$(aws ecr get-login-password --region ca-central-1 | docker --config ${GITHUB_WORKSPACE}/${GITHUB_RUN_ID} login --username AWS --password-stdin 800095993820.dkr.ecr.ca-central-1.amazonaws.com) + # Print the login result for debugging + echo "Login Result: $result" + - name: setup-terraform uses: ./.github/actions/setup-terraform with: