Skip to content

Commit a69bb05

Browse files
authored
Migrate Batch integration tests to use AWS resources in different region (#769) (#769)
Summary: Pull Request resolved: #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
1 parent a45c4ca commit a69bb05

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/aws-batch-integration-tests.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ jobs:
2323
- name: Configure AWS Credentials
2424
uses: aws-actions/[email protected]
2525
with:
26-
aws-region: us-west-2
27-
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
26+
aws-region: us-west-1
27+
role-to-assume: ${{ secrets.TF_AWS_ROLE_ARN }}
2828
role-session-name: github-torchx
2929
continue-on-error: true
3030
- name: Configure Docker
3131
run: |
3232
set -eux
33-
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 495572122715.dkr.ecr.us-west-2.amazonaws.com
33+
aws ecr get-login-password --region us-west-1 | docker login --username AWS --password-stdin 495572122715.dkr.ecr.us-west-1.amazonaws.com
3434
continue-on-error: true
3535
- name: Install dependencies
3636
run: |
3737
set -eux
3838
pip install -e .[dev]
3939
- name: Run AWS Batch Integration Tests
4040
env:
41-
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
41+
AWS_ROLE_ARN: ${{ secrets.TF_AWS_ROLE_ARN }}
4242
run: |
4343
set -ex
4444

scripts/awsbatchint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ cd "$DIR"
2121
cat <<EOT > .torchxconfig
2222
[aws_batch]
2323
queue=torchx
24-
image_repo=495572122715.dkr.ecr.us-west-2.amazonaws.com/torchx/integration-tests
24+
image_repo=495572122715.dkr.ecr.us-west-1.amazonaws.com/torchx/integration-tests
2525
EOT
2626

2727
cat <<EOT > main.py

0 commit comments

Comments
 (0)