Rotate the credential that actually authenticates
How to replace and retire long-lived IAM credentials safely, including access-key cutover, key-slot limits, and why console password expiration does not rotate access keys. · associate
Credential rotation means replacing a credential, moving its consumers to the replacement, and retiring the old credential. Generating a new secret is not enough if applications still use the old one or AWS still accepts it.
An IAM user's console password and access keys are separate credentials. The password supports console sign-in; an access key ID and secret access key support signed API requests, including requests from the CLI and SDKs. IAM password-policy expiration applies to the console password. It does not expire, replace, or deactivate access keys.
For workloads, prefer IAM roles and temporary credentials over long-lived IAM user keys. Supported SDK credential providers can obtain and refresh role credentials. When a long-lived access key remains necessary, manage its rotation explicitly; changing the user's password is not a substitute.
| Credential | Typical use | Effect of IAM password expiration | Replacement |
|---|---|---|---|
| Console password | Console sign-in | Applies to password | Change password |
| IAM user access key | Signed API requests | No effect | Create and cut over keys |