From d78119eacc854b0915f4705e5ed1756b22a7a52e Mon Sep 17 00:00:00 2001 From: Petr Heinz Date: Mon, 9 Nov 2026 09:53:19 +0100 Subject: [PATCH] T-22643 Configure AWS credentials before the ZIP step so the cleanup can always run The cleanup step runs always, but the credentials step came after the ZIP step: when the ZIP download failed, every aws call in the cleanup ended in NoCredentials, leftovers of earlier runs stayed in the account and the job reported a second failing step. The credentials now come right after the checkout. Co-Authored-By: Claude Fable 5.1 --- .github/workflows/e2e.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index a167c1b..c1fd800 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -85,6 +85,12 @@ jobs: echo "RUNTIME=$RUNTIME" >> "$GITHUB_ENV" echo "docs: $ZIP_URL on $RUNTIME_LABEL ($RUNTIME), x86_64" + - name: "[Setup] AWS credentials (OIDC)" + uses: aws-actions/configure-aws-credentials@v5 + with: + role-to-assume: ${{ env.AWS_ROLE_ARN }} + aws-region: ${{ env.AWS_REGION }} + - name: "[Setup] The Lambda ZIP: built from this checkout, or the released one on the schedule" run: | if [ -n "$ZIP_URL_OVERRIDE" ]; then @@ -113,12 +119,6 @@ jobs: echo "CLIENT_VERSION=$CLIENT_VERSION" >> "$GITHUB_ENV" echo "logtail-aws-lambda ${RELEASE_TAG:-unknown} with @logtail/node $CLIENT_VERSION, $(stat -c %s logtail-aws-lambda.zip) bytes from $ZIP_FROM" - - name: "[Setup] AWS credentials (OIDC)" - uses: aws-actions/configure-aws-credentials@v5 - with: - role-to-assume: ${{ env.AWS_ROLE_ARN }} - aws-region: ${{ env.AWS_REGION }} - - name: "[Setup] Create AWS CloudWatch source" run: | RES=$(curl -sS -X POST "$API/api/v1/sources" -H "Authorization: Bearer $TEST_TEAM_TELEMETRY_API" -H 'Content-Type: application/json' \