Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ben851 committed Aug 23, 2024
1 parent f03f5ca commit 3834464
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/terragrunt_create_dev_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 10 additions & 10 deletions aws/ecr/images.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

}
Expand Down Expand Up @@ -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"
}

}
Expand Down Expand Up @@ -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"
}

}
Expand Down Expand Up @@ -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"
}

}
Expand Down Expand Up @@ -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"
}

}
Expand Down Expand Up @@ -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"
}

}
Expand Down Expand Up @@ -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"
}

}
Expand Down Expand Up @@ -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"
}

}
Expand All @@ -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
]
Expand All @@ -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"
}
}

0 comments on commit 3834464

Please sign in to comment.