File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 21
21
id-token : write # needed to interact with GitHub's OIDC Token endpoint.
22
22
contents : read
23
23
strategy :
24
- max-parallel : 30
24
+ # max-parallel: 30
25
25
matrix :
26
26
package :
27
27
[
@@ -62,11 +62,18 @@ jobs:
62
62
uses : aws-powertools/actions/.github/actions/cached-node-modules@29979bc5339bf54f76a11ac36ff67701986bb0f0
63
63
with :
64
64
nodeVersion : ' 22'
65
+ - name : Round robin region
66
+ id : round-robin-region
67
+ run : |
68
+ regions_available=(eu-west-1 us-east-1)
69
+ region=${regions_available[$((RANDOM % ${#regions[@]}))]}
70
+ # Set the region as an output variable
71
+ echo "region=$region" >> $GITHUB_OUTPUT
65
72
- name : Setup AWS credentials
66
73
uses : aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
67
74
with :
68
75
role-to-assume : ${{ secrets.AWS_ROLE_ARN_TO_ASSUME }}
69
- aws-region : eu-west-1
76
+ aws-region : ${{ steps.round-robin-region.outputs.region }}
70
77
mask-aws-account-id : true
71
78
- name : Run integration tests on utils
72
79
env :
You can’t perform that action at this time.
0 commit comments