The classic way to deploy to AWS from CI goes like this: create an IAM user, generate an access key, paste it into your CI secrets, and hope it never leaks. Those keys don't expire. If one ends up in a log, a fork or an old laptop backup, someone has long-term access to your account until you notice.
GitHub Actions doesn't need them. With OIDC, every workflow run asks AWS for credentials that last one hour, and AWS checks exactly which repo and branch is asking before it hands anything over.
This is the first post in a series where I build one small project and grow its pipeline one step at a time. In this one I set up OIDC from scratch with Terraform, deploy a real app with it, and walk through the error that broke my very first run.…