Skip to content

Commit b90d88f

Browse files
authored
Use aws-actions/configure-aws-credentials@v2 (#562)
1 parent 7e2560f commit b90d88f

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
5757
python builder.pyz build -p ${{ env.PACKAGE_NAME }}
5858
- name: configure AWS credentials (PubSub)
59-
uses: aws-actions/configure-aws-credentials@v1
59+
uses: aws-actions/configure-aws-credentials@v2
6060
with:
6161
role-to-assume: ${{ env.CI_PUBSUB_ROLE }}
6262
aws-region: ${{ env.AWS_DEFAULT_REGION }}
@@ -67,15 +67,15 @@ jobs:
6767
run: |
6868
python ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_windows_cert_connect_cfg.json
6969
- name: configure AWS credentials (MQTT5 samples)
70-
uses: aws-actions/configure-aws-credentials@v1
70+
uses: aws-actions/configure-aws-credentials@v2
7171
with:
7272
role-to-assume: ${{ env.CI_MQTT5_ROLE }}
7373
aws-region: ${{ env.AWS_DEFAULT_REGION }}
7474
- name: run MQTT5 PubSub sample
7575
run: |
7676
python ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_mqtt5_pubsub_cfg.json
7777
- name: configure AWS credentials (Device Advisor)
78-
uses: aws-actions/configure-aws-credentials@v1
78+
uses: aws-actions/configure-aws-credentials@v2
7979
with:
8080
role-to-assume: ${{ env.CI_DEVICE_ADVISOR }}
8181
aws-region: ${{ env.AWS_DEFAULT_REGION }}
@@ -106,7 +106,7 @@ jobs:
106106
run: |
107107
python3 -m pip install boto3
108108
- name: configure AWS credentials (PubSub)
109-
uses: aws-actions/configure-aws-credentials@v1
109+
uses: aws-actions/configure-aws-credentials@v2
110110
with:
111111
role-to-assume: ${{ env.CI_PUBSUB_ROLE }}
112112
aws-region: ${{ env.AWS_DEFAULT_REGION }}
@@ -121,15 +121,15 @@ jobs:
121121
openssl pkcs12 -export -in /tmp/certificate.pem -inkey /tmp/privatekey.pem -out ./pkcs12-key.p12 -name PubSub_Thing_Alias -password pass:$pkcs12_password
122122
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_pkcs12_connect_cfg.json
123123
- name: configure AWS credentials (MQTT5 samples)
124-
uses: aws-actions/configure-aws-credentials@v1
124+
uses: aws-actions/configure-aws-credentials@v2
125125
with:
126126
role-to-assume: ${{ env.CI_MQTT5_ROLE }}
127127
aws-region: ${{ env.AWS_DEFAULT_REGION }}
128128
- name: run MQTT5 PubSub sample
129129
run: |
130130
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_mqtt5_pubsub_cfg.json
131131
- name: configure AWS credentials (Device Advisor)
132-
uses: aws-actions/configure-aws-credentials@v1
132+
uses: aws-actions/configure-aws-credentials@v2
133133
with:
134134
role-to-assume: ${{ env.CI_DEVICE_ADVISOR }}
135135
aws-region: ${{ env.AWS_DEFAULT_REGION }}
@@ -160,23 +160,23 @@ jobs:
160160
run: |
161161
python3 -m pip install boto3
162162
- name: configure AWS credentials (PubSub)
163-
uses: aws-actions/configure-aws-credentials@v1
163+
uses: aws-actions/configure-aws-credentials@v2
164164
with:
165165
role-to-assume: ${{ env.CI_PUBSUB_ROLE }}
166166
aws-region: ${{ env.AWS_DEFAULT_REGION }}
167167
- name: run PubSub sample
168168
run: |
169169
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_pubsub_cfg.json
170170
- name: configure AWS credentials (MQTT5 samples)
171-
uses: aws-actions/configure-aws-credentials@v1
171+
uses: aws-actions/configure-aws-credentials@v2
172172
with:
173173
role-to-assume: ${{ env.CI_MQTT5_ROLE }}
174174
aws-region: ${{ env.AWS_DEFAULT_REGION }}
175175
- name: run MQTT5 PubSub sample
176176
run: |
177177
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_mqtt5_pubsub_cfg.json
178178
- name: configure AWS credentials (Device Advisor)
179-
uses: aws-actions/configure-aws-credentials@v1
179+
uses: aws-actions/configure-aws-credentials@v2
180180
with:
181181
role-to-assume: ${{ env.CI_DEVICE_ADVISOR }}
182182
aws-region: ${{ env.AWS_DEFAULT_REGION }}
@@ -277,7 +277,7 @@ jobs:
277277
python3 ./test_cases/test_jobs_execution.py --config-file test_cases/mqtt5_jobs_cfg.json
278278
279279
- name: configure AWS credentials (Connect and PubSub)
280-
uses: aws-actions/configure-aws-credentials@v1
280+
uses: aws-actions/configure-aws-credentials@v2
281281
with:
282282
role-to-assume: ${{ env.CI_PUBSUB_ROLE }}
283283
aws-region: ${{ env.AWS_DEFAULT_REGION }}
@@ -297,23 +297,23 @@ jobs:
297297
echo "directories.tokendir = /tmp/tokens" > /tmp/softhsm2.conf
298298
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_pkcs11_connect_cfg.json
299299
- name: configure AWS credentials (Cognito)
300-
uses: aws-actions/configure-aws-credentials@v1
300+
uses: aws-actions/configure-aws-credentials@v2
301301
with:
302302
role-to-assume: ${{ env.CI_COGNITO_ROLE }}
303303
aws-region: ${{ env.AWS_DEFAULT_REGION }}
304304
- name: run Cognito Connect sample
305305
run: |
306306
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_cognito_connect_cfg.json
307307
- name: configure AWS credentials (X509)
308-
uses: aws-actions/configure-aws-credentials@v1
308+
uses: aws-actions/configure-aws-credentials@v2
309309
with:
310310
role-to-assume: ${{ env.CI_X509_ROLE }}
311311
aws-region: ${{ env.AWS_DEFAULT_REGION }}
312312
- name: run X509 sample
313313
run: |
314314
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_x509_connect_cfg.json
315315
- name: configure AWS credentials (MQTT5 samples)
316-
uses: aws-actions/configure-aws-credentials@v1
316+
uses: aws-actions/configure-aws-credentials@v2
317317
with:
318318
role-to-assume: ${{ env.CI_MQTT5_ROLE }}
319319
aws-region: ${{ env.AWS_DEFAULT_REGION }}
@@ -336,15 +336,15 @@ jobs:
336336
run: |
337337
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_mqtt5_shared_subscription_cfg.json
338338
- name: configure AWS credentials (Custom Authorizer)
339-
uses: aws-actions/configure-aws-credentials@v1
339+
uses: aws-actions/configure-aws-credentials@v2
340340
with:
341341
role-to-assume: ${{ env.CI_CUSTOM_AUTHORIZER_ROLE }}
342342
aws-region: ${{ env.AWS_DEFAULT_REGION }}
343343
- name: run CustomAuthorizerConnect sample
344344
run: |
345345
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_custom_authorizer_connect_cfg.json
346346
- name: configure AWS credentials (Shadow)
347-
uses: aws-actions/configure-aws-credentials@v1
347+
uses: aws-actions/configure-aws-credentials@v2
348348
with:
349349
role-to-assume: ${{ env.CI_SHADOW_ROLE }}
350350
aws-region: ${{ env.AWS_DEFAULT_REGION }}
@@ -355,7 +355,7 @@ jobs:
355355
run: |
356356
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_mqtt5_shadow_cfg.json
357357
- name: configure AWS credentials (Jobs)
358-
uses: aws-actions/configure-aws-credentials@v1
358+
uses: aws-actions/configure-aws-credentials@v2
359359
with:
360360
role-to-assume: ${{ env.CI_JOBS_ROLE }}
361361
aws-region: ${{ env.AWS_DEFAULT_REGION }}
@@ -366,7 +366,7 @@ jobs:
366366
run: |
367367
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_mqtt5_jobs_cfg.json
368368
- name: configure AWS credentials (Fleet provisioning)
369-
uses: aws-actions/configure-aws-credentials@v1
369+
uses: aws-actions/configure-aws-credentials@v2
370370
with:
371371
role-to-assume: ${{ env.CI_FLEET_PROVISIONING_ROLE }}
372372
aws-region: ${{ env.AWS_DEFAULT_REGION }}
@@ -383,7 +383,7 @@ jobs:
383383
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_mqtt5_fleet_provisioning_cfg.json --input_uuid ${Sample_UUID}
384384
python3 ${{ env.CI_UTILS_FOLDER }}/delete_iot_thing_ci.py --thing_name "Fleet_Thing_${Sample_UUID}" --region "us-east-1"
385385
- name: configure AWS credentials (Greengrass)
386-
uses: aws-actions/configure-aws-credentials@v1
386+
uses: aws-actions/configure-aws-credentials@v2
387387
with:
388388
role-to-assume: ${{ env.CI_GREENGRASS_ROLE }}
389389
aws-region: ${{ env.AWS_DEFAULT_REGION }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
force: true
6969

7070
- name: configure AWS credentials (Release)
71-
uses: aws-actions/configure-aws-credentials@v1
71+
uses: aws-actions/configure-aws-credentials@v2
7272
with:
7373
role-to-assume: arn:aws:iam::180635532705:role/CI_V2_RELEASE_S3_ROLE
7474
aws-region: us-east-1

0 commit comments

Comments
 (0)