Skip to content

Conversation

@majk-p
Copy link
Contributor

@majk-p majk-p commented Sep 11, 2025

Description of changes:

I've got a workflow this action as follows:

  - name: Assume the testing role
    uses: aws-actions/configure-aws-credentials@v4
    with:
      role-to-assume: ${{ inputs.roleToAssume }}
      aws-region: ${{ inputs.targetRegion }}
      aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }}
      aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }}
      aws-session-token: ${{ env.AWS_SESSION_TOKEN }}
      disable-retry: false
      retry-max-attempts: 30
      role-skip-session-tagging: true
      role-duration-seconds: 3600

I know v5 is the latest, but v4 was the current release until just last week.

Problem
When I change my infrastructure such that the role can no longer be assumed, the action keeps retrying without providing any useful debug information — even when re-running in debug mode:

image

This PR adds extra debug info to the retry logic to help debugging in a situation like that. It does not alter retry behavior — only adds visibility.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@kellertk
Copy link
Member

Thanks for the contribution!

@kellertk kellertk merged commit 97ef425 into aws-actions:main Sep 11, 2025
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants