Skip to content

Commit 3b0fbfc

Browse files
committed
test: multi-region tests
1 parent 8f64ff0 commit 3b0fbfc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/run-e2e-tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,18 @@ jobs:
6666
uses: aws-powertools/actions/.github/actions/cached-node-modules@29979bc5339bf54f76a11ac36ff67701986bb0f0
6767
with:
6868
nodeVersion: '22'
69+
- name: Round robin region
70+
id: round-robin-region
71+
run: |
72+
regions_available=(eu-west-1 us-east-1)
73+
region=${regions_available[$((RANDOM % ${#regions[@]}))]}
74+
# Set the region as an output variable
75+
echo "region=$region" >> $GITHUB_OUTPUT
6976
- name: Setup AWS credentials
7077
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
7178
with:
7279
role-to-assume: ${{ secrets.AWS_ROLE_ARN_TO_ASSUME }}
73-
aws-region: eu-west-1
80+
aws-region: ${{ steps.round-robin-region.outputs.region }}
7481
mask-aws-account-id: true
7582
- name: Run integration tests on utils
7683
env:

0 commit comments

Comments
 (0)