Change an access key status.
Section: Roles, Trust, and Access Keys
Disable an access key
bash
bash
aws iam update-access-key --user-name deploy-bot --access-key-id AKIAIOSFODNN7EXAMPLE --status InactiveExplanation
Useful during rotation or incident response.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Roles, Trust, and Access Keys