AWS STS (IAM)
JSON →AWS Security Token Service (STS) grants temporary, limited-privilege credentials for IAM users or federated users.
Common permissions
sts:GetCallerIdentitysts:GetSessionTokensts:GetFederationTokensts:GetWebIdentityTokensts:GetAccessKeyInfosts:GetServiceBearerTokensts:TagSessionsts:GetDelegatedAccessToken Least-privilege example
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"sts:GetCallerIdentity",
"sts:GetSessionToken",
"sts:GetFederationToken",
"sts:GetWebIdentityToken",
"sts:GetAccessKeyInfo",
"sts:GetServiceBearerToken",
"sts:TagSession",
"sts:GetDelegatedAccessToken"
],
"Resource": "*"
}
]
} Warnings
- Avoid sts:* — grants full control including token generation that can bypass MFA.
- Avoid sts:GetFederationToken without conditions — can create long-lived credentials.
Resources
API
full doc /v1/iam/sts