Skip to content
Least Privilege Principle

Long-term credentials

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.

All terms ยท Open the calculator

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.

Sources

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

Last reviewed 16 Nov 2026.