Skip to content

Commit a0fce6a

Browse files
committed
refresh aws credential.
1 parent c31f916 commit a0fce6a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/java-lambda-layer-perf-test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: aws-actions/configure-aws-credentials@v4
3939
with:
4040
role-to-assume: arn:aws:iam::${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}:role/${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
41-
aws-region: us-east-1
41+
aws-region: us-east-1
4242

4343
- name: Checkout aws-otel-java-instrumentation
4444
uses: actions/checkout@v4
@@ -83,6 +83,13 @@ jobs:
8383
terraform init
8484
terraform apply -auto-approve -var="force_recreate=true" -var "adot_layer_arn=${{ env.LAYER_VERSION_ARN }}"
8585
86+
# Re-authenticate to refresh credentials (important!)
87+
- name: Refresh AWS Credentials
88+
uses: aws-actions/configure-aws-credentials@v4
89+
with:
90+
role-to-assume: arn:aws:iam::${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}:role/${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
91+
aws-region: us-east-1
92+
8693
- name: Checkout current repository
8794
uses: actions/checkout@v4
8895
with:

0 commit comments

Comments
 (0)