From 383446411a93b7aefd121e749510dbe15d44519d Mon Sep 17 00:00:00 2001 From: Ben Larabie Date: Fri, 23 Aug 2024 13:31:20 -0400 Subject: [PATCH] debug --- .../terragrunt_create_dev_environment.yml | 3 ++- aws/ecr/images.tf | 20 +++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/terragrunt_create_dev_environment.yml b/.github/workflows/terragrunt_create_dev_environment.yml index 657e91773..d4d3df690 100644 --- a/.github/workflows/terragrunt_create_dev_environment.yml +++ b/.github/workflows/terragrunt_create_dev_environment.yml @@ -67,7 +67,8 @@ jobs: # 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" + echo "Login Result: $result" + echo $AWS_PROFILE - name: setup-terraform uses: ./.github/actions/setup-terraform diff --git a/aws/ecr/images.tf b/aws/ecr/images.tf index d897984f6..e45ca8a3a 100644 --- a/aws/ecr/images.tf +++ b/aws/ecr/images.tf @@ -40,7 +40,7 @@ resource "null_resource" "push_admin_docker_image" { depends_on = [null_resource.build_admin_docker_image] provisioner "local-exec" { - command = "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 && docker push ${aws_ecr_repository.notify_admin[0].repository_url}:bootstrap" + command = "docker push ${aws_ecr_repository.notify_admin[0].repository_url}:bootstrap" } } @@ -81,7 +81,7 @@ resource "null_resource" "push_api_docker_image" { depends_on = [null_resource.build_api_docker_image] provisioner "local-exec" { - command = "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 && docker push ${aws_ecr_repository.api-lambda.repository_url}:bootstrap" + command = "docker push ${aws_ecr_repository.api-lambda.repository_url}:bootstrap" } } @@ -122,7 +122,7 @@ resource "null_resource" "push_heartbeat_docker_image" { depends_on = [null_resource.build_heartbeat_docker_image] provisioner "local-exec" { - command = "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 && docker push ${aws_ecr_repository.heartbeat.repository_url}:bootstrap" + command = "docker push ${aws_ecr_repository.heartbeat.repository_url}:bootstrap" } } @@ -151,7 +151,7 @@ resource "null_resource" "push_google_cidr_docker_image" { depends_on = [null_resource.build_google_cidr_docker_image] provisioner "local-exec" { - command = "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 && docker push ${aws_ecr_repository.google-cidr.repository_url}:bootstrap" + command = "docker push ${aws_ecr_repository.google-cidr.repository_url}:bootstrap" } } @@ -180,7 +180,7 @@ resource "null_resource" "push_ses_receiving_emails_docker_image" { depends_on = [null_resource.build_ses_receiving_emails_docker_image] provisioner "local-exec" { - command = "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 && docker push ${aws_ecr_repository.ses_receiving_emails.repository_url}:bootstrap" + command = "docker push ${aws_ecr_repository.ses_receiving_emails.repository_url}:bootstrap" } } @@ -209,7 +209,7 @@ resource "null_resource" "push_ses_to_sqs_email_callbacks_docker_image" { depends_on = [null_resource.build_ses_to_sqs_email_callbacks_docker_image] provisioner "local-exec" { - command = "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 && docker push ${aws_ecr_repository.ses_to_sqs_email_callbacks.repository_url}:bootstrap" + command = "docker push ${aws_ecr_repository.ses_to_sqs_email_callbacks.repository_url}:bootstrap" } } @@ -238,7 +238,7 @@ resource "null_resource" "push_sns_to_sqs_sms_callbacks_docker_image" { depends_on = [null_resource.build_sns_to_sqs_sms_callbacks_docker_image] provisioner "local-exec" { - command = "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 && docker push ${aws_ecr_repository.sns_to_sqs_sms_callbacks.repository_url}:bootstrap" + command = "docker push ${aws_ecr_repository.sns_to_sqs_sms_callbacks.repository_url}:bootstrap" } } @@ -266,7 +266,7 @@ resource "null_resource" "push_system_status_docker_image" { depends_on = [null_resource.build_system_status_docker_image] provisioner "local-exec" { - command = "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 && docker push ${aws_ecr_repository.system_status.repository_url}:bootstrap" + command = "docker push ${aws_ecr_repository.system_status.repository_url}:bootstrap" } } @@ -279,7 +279,7 @@ resource "null_resource" "build_pinpoint_to_sqs_sms_callbacks_docker_image" { triggers = { always_run = "${timestamp()}" } - + depends_on = [ null_resource.lambda_repo_clone ] @@ -294,6 +294,6 @@ resource "null_resource" "push_pinpoint_to_sqs_sms_callbacks_docker_image" { depends_on = [null_resource.build_pinpoint_to_sqs_sms_callbacks_docker_image] provisioner "local-exec" { - command = "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 && docker push ${aws_ecr_repository.pinpoint_to_sqs_sms_callbacks.repository_url}:bootstrap" + command = "docker push ${aws_ecr_repository.pinpoint_to_sqs_sms_callbacks.repository_url}:bootstrap" } }