ExitCredential Rotation: replacing IAM credentials safely1 / 9
Explanation

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.

CredentialTypical useEffect of IAM password expirationReplacement
Console passwordConsole sign-inApplies to passwordChange password
IAM user access keySigned API requestsNo effectCreate and cut over keys