Move from long-lived IAM user access keys to SSO and roles for 60 engineers. How?

IntermediateScenarioMigrations
Answer

Situation read → Security win, but people's scripts and tools depend on keys. Plan for the breakage.

What I'd do →

  1. Set up IAM Identity Center connected to the identity provider (Okta, Entra ID, Google), with permission sets per role (ReadOnly, Developer, Admin) mapped to groups.
  2. Engineers use aws configure sso and aws sso login; profiles replace static keys.
  3. Find active keys and their last use:
aws iam generate-credential-report
aws iam get-credential-report --query Content --output text | base64 -d
  1. Migrate CI to OIDC roles, and workloads to instance profiles or IRSA.
  2. Deactivate keys first (reversible), wait two weeks, then delete. Add an SCP or Config rule to block new IAM user keys.

Why → Deactivate-then-delete gives a safe window to find forgotten dependencies.

Interview tip → The credential report's access_key_last_used field is the evidence for this work.

All Real-World Interview questions Roadmap: Interview readiness

More on Migrations