From a69bb05434fc150283eee9c15a07892ff881b27e Mon Sep 17 00:00:00 2001 From: Kurman Karabukaev <74940256+kurman@users.noreply.github.com> Date: Thu, 21 Sep 2023 07:49:07 -0700 Subject: [PATCH] Migrate Batch integration tests to use AWS resources in different region (#769) (#769) Summary: Pull Request resolved: https://github.com/pytorch/torchx/pull/769 Use us-west-1 resources as part of Devops efforts. The resources will mirror original state and once things are stable we can turn off original region/resources. Differential Revision: D49363140 fbshipit-source-id: b5be6ca43e90bf4cbc8bf081aa29a9c8d64ac5e1 --- .github/workflows/aws-batch-integration-tests.yaml | 8 ++++---- scripts/awsbatchint.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/aws-batch-integration-tests.yaml b/.github/workflows/aws-batch-integration-tests.yaml index 8643cb978..c86cb57d1 100644 --- a/.github/workflows/aws-batch-integration-tests.yaml +++ b/.github/workflows/aws-batch-integration-tests.yaml @@ -23,14 +23,14 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1.6.1 with: - aws-region: us-west-2 - role-to-assume: ${{ secrets.AWS_ROLE_ARN }} + aws-region: us-west-1 + role-to-assume: ${{ secrets.TF_AWS_ROLE_ARN }} role-session-name: github-torchx continue-on-error: true - name: Configure Docker run: | set -eux - aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 495572122715.dkr.ecr.us-west-2.amazonaws.com + aws ecr get-login-password --region us-west-1 | docker login --username AWS --password-stdin 495572122715.dkr.ecr.us-west-1.amazonaws.com continue-on-error: true - name: Install dependencies run: | @@ -38,7 +38,7 @@ jobs: pip install -e .[dev] - name: Run AWS Batch Integration Tests env: - AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }} + AWS_ROLE_ARN: ${{ secrets.TF_AWS_ROLE_ARN }} run: | set -ex diff --git a/scripts/awsbatchint.sh b/scripts/awsbatchint.sh index fb6abfbea..3610eb76d 100755 --- a/scripts/awsbatchint.sh +++ b/scripts/awsbatchint.sh @@ -21,7 +21,7 @@ cd "$DIR" cat < .torchxconfig [aws_batch] queue=torchx -image_repo=495572122715.dkr.ecr.us-west-2.amazonaws.com/torchx/integration-tests +image_repo=495572122715.dkr.ecr.us-west-1.amazonaws.com/torchx/integration-tests EOT cat < main.py