Interview Prep/GitHub Actions/OIDC & Cloud Authentication

`Error: Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers`

IntermediateTroubleshootingOIDC & Cloud Authentication
Answer

Likely causes → The job lacks id-token: write, so configure-aws-credentials cannot get an OIDC token and falls back to looking for keys; or role-to-assume is empty (a variable not set in this environment).

Diagnose → Check permissions and that vars.DEPLOY_ROLE_ARN resolves (print it, it is not secret).

Fix → Add permissions: id-token: write (plus contents: read) and set the variable at the correct level.

Prevent → Fail fast: test -n "$ROLE_ARN" || { echo "::error::DEPLOY_ROLE_ARN not set"; exit 1; }.

All GitHub Actions questions Roadmap: GitHub Actions

More on OIDC & Cloud Authentication