# Temporary credentials

Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.

Temporary credentials are short-lived keys issued by AWS Security Token Service that expire on their own, and they are the basis of IAM roles and federation. Because they expire, nobody has to revoke or rotate them. AWS says they can be requested again as long as the caller still has permission.

## An example, sourced

AWS documentation says temporary credentials can last from a few minutes to several hours, are generated dynamically when requested, and let you avoid embedding long-term AWS credentials in an application.

## Why it matters here

A stolen temporary credential stops working at expiry. Replacing long-term keys with them cuts the time a leaked secret is useful.

## Related pages

- [Access key rotation: meaning and an example](/glossary/access-key-rotation/)
- [MFA condition: meaning and an example](/glossary/mfa-condition/)
- [Data perimeter: meaning and an example](/glossary/data-perimeter/)
- [All of them](/glossary/)

## Sources

- https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html (read 16 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://leastprivilegeprinciple.com/glossary/temporary-credentials/
