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 →
- 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.
- Engineers use
aws configure ssoandaws sso login; profiles replace static keys. - Find active keys and their last use:
aws iam generate-credential-report
aws iam get-credential-report --query Content --output text | base64 -d
- Migrate CI to OIDC roles, and workloads to instance profiles or IRSA.
- 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.
More on Migrations
Migrate an application from EC2 to EKS with zero downtime. Walk me through it.AdvancedMigrate a database from on-prem MySQL to Amazon RDS with minimal downtime. How?AdvancedYou need to move Terraform state from local files to an S3 backend. How?BeginnerMigrate CI from Jenkins to GitHub Actions for 80 repositories. How do you plan it?IntermediateUpgrade an EKS cluster from 1.30 to 1.31 in production. What's your process?IntermediateMove from a monolith to microservices. What's the DevOps side of the migration?Advanced