AWS STS · Temporary credentials

How an agent gets a AWS STS · Temporary credentials key through KeyKeeper, what to choose on aws.amazon.com, and how KeyKeeper verifies it.

Template idaws-sts (also aws-temporary)
Fieldaws-secret-access-key → AWS_SECRET_ACCESS_KEY · secret
Alsoaws-access-key-id → AWS_ACCESS_KEY_ID · plain, confirmed by you
Alsoaws-session-token → AWS_SESSION_TOKEN · secret
Alsoaws-region → AWS_REGION · plain, confirmed by you, optional
Alsoaws-credential-expires-at → AWS_CREDENTIAL_EXPIRES_AT · plain, confirmed by you
Key looks likewhether it can be viewed again is unconfirmed
Created ataws.amazon.com
Verified by KeyKeepernot verified
Template checked2026-09-15

What the agent does

keykeeper providers show aws-sts
keykeeper save --provider aws-sts --from-clipboard --create --purpose "what this task does"
keykeeper run -c aws-sts -- <your command>

--provider aws-sts fills in the credential id and the fields. The environment variables are the ones AWS's own tools read, so nothing has to be mapped.

What only you can do

Use IAM Identity Center or assume a least-privilege role
Obtain one complete STS credential set
Copy all three values and the issued expiration together
Copy the key, then approve the save in KeyKeeper's window.

What to choose

Temporary credentials must include ASIA access-key ID, secret, session token and expiration. Prefer an AWS profile/credential provider chain when the tool supports it.

The agent is told the same thing. It opens the page for you and says what to pick; it never logs in, passes 2FA or pays on your behalf.

What KeyKeeper checks

  • Before writing: the value must look like a AWS STS · Temporary credentials key (whether it can be viewed again is unconfirmed). A wrong paste is refused before anything is stored, and the agent is told why — without the value.
  • After saving: AWS STS · Temporary credentials offers no read-only endpoint KeyKeeper can use, so the first real call is the test.

Rotation and expiry

STS credentials expire at the provider-issued timestamp; record it on the credential.