How do you remove long-lived access keys from an existing estate?
IntermediateProductionIAM Best Practices
Answer
Inventory with the credential report (aws iam generate-credential-report then get-credential-report), group keys by consumer, then migrate each: EC2/ECS/Lambda to roles, EKS to Pod Identity or IRSA, CI to OIDC federation, on-prem servers to IAM Roles Anywhere, laptops to Identity Center. Deactivate before deleting, watch aws iam get-access-key-last-used and CloudTrail for breakage, then add an SCP denying iam:CreateAccessKey so they never come back.
More on IAM Best Practices
What does least privilege look like in practice, not in theory?BeginnerWhat are the IAM rules you enforce for humans?BeginnerHow do you design Identity Center permission sets for many teams?IntermediateHow does ABAC with Identity Center work, and when is it worth it?AdvancedWhen do you use permission boundaries in production?IntermediateHow do you implement just-in-time privileged access in AWS?Advanced