AWS IAM · Long-lived access key

How an agent gets a AWS IAM · Long-lived access key key through KeyKeeper, what to choose on console.aws.amazon.com, and how KeyKeeper verifies it.

Template idaws (also amazon-web-services)
Fieldaws-secret-access-key → AWS_SECRET_ACCESS_KEY · secret
Alsoaws-access-key-id → AWS_ACCESS_KEY_ID · plain, confirmed by you
Alsoaws-region → AWS_REGION · plain, confirmed by you, optional
Key looks likeshown once when created
Created atconsole.aws.amazon.com
Verified by KeyKeepernot verified
Template checked2026-09-15

What the agent does

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

--provider aws 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

Sign in to AWS
Use IAM Identity Center or assume a role where possible
If a key is unavoidable, create/select a dedicated IAM user
Open its Security credentials and copy the pair once
Copy the key, then approve the save in KeyKeeper's window.

What to choose

Prefer temporary role credentials. Never create a root access key. If long-lived keys are unavoidable, attach a least-privilege policy limited by action and resource, and set rotation reminders.

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 IAM · Long-lived access key key (shown once when created). A wrong paste is refused before anything is stored, and the agent is told why — without the value.
  • After saving: AWS IAM · Long-lived access key offers no read-only endpoint KeyKeeper can use, so the first real call is the test.

Rotation and expiry

Long-lived IAM access keys do not expire automatically; rotate and revoke explicitly. Rotate or revoke at console.aws.amazon.com.