A practical guide to fixing AWS IAM role assumption failures in GitHub Actions
Introduction
One of the things I appreciate about working with cloud technologies is that troubleshooting often teaches you more than simply getting something to work.
While configuring a GitHub Actions workflow to authenticate with AWS using OpenID Connect (OIDC), I encountered an authentication failure that took some investigation to resolve.
My initial configuration appeared correct. I had configured an AWS IAM OIDC identity provider, created an IAM role with a trust policy, and set up the GitHub Actions workflow with the required permissions.
However, GitHub Actions could not assume the IAM role.
After investigating the issue, I discovered that the problem was not with the AWS credentials or the workflow itself.…