# Long-term credentials

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

Long-term credentials are keys that stay valid until someone deletes or deactivates them, such as AWS IAM user access keys. They are the opposite of temporary credentials. AWS says IAM users with access keys are an account security risk that needs careful handling.

## An example, sourced

AWS documentation describes an access key as an access key ID such as AKIAIOSFODNN7EXAMPLE plus a secret access key, says the secret can be retrieved only at creation, and says an IAM user can have a maximum of two.

## Why it matters here

Every long-term key is standing access that can leak. Roles with temporary credentials remove the need for most of them.

## Related pages

- [Data action: meaning and an example](/glossary/data-action/)
- [Assignable scope: meaning and an example](/glossary/assignable-scope/)
- [Access debt: meaning and an example](/glossary/access-debt/)
- [All of them](/glossary/)

## Sources

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

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