AWS IAM Authenticator
$ aws-iam-authenticator Foundation Low RiskAWS IAM Authenticator (aws-iam-authenticator) uses AWS IAM identities to authenticate against Kubernetes clusters (including Amazon EKS). Executed via aws-iam-authenticator token -i <cluster-id>, it outputs standard Kubernetes ExecCredential JSON directly for kubectl.
brew install aws-iam-authenticator aws-iam-authenticator acts as a local kubectl kubeconfig exec credential helper; it is an infrastructure plumbing binary rather than an MCP candidate.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Purpose-built headless exec plugin that deterministically outputs Kubernetes ExecCredential JSON with zero TTY prompts.
token -i <cluster-id>emits structuredExecCredentialJSON- Designed for automated
kubectlkubeconfigexecinvocation
Read-only presigned STS URL generator with cluster-ID scoping (-i) and IAM role assumption (-r), though printed tokens are bearer secrets.
- No remote write or destructive subcommands
- Presigned STS token on stdout must not be leaked into logs
Single static Go binary available via Homebrew and GitHub releases on macOS, Linux, and Windows.
- Available via
brew install aws-iam-authenticatorand release binaries
Narrow single-purpose credential plugin; largely superseded on EKS by aws eks get-token, but still required by many kubeconfigs and self-managed clusters.
- Required by legacy EKS and self-managed AWS Kubernetes kubeconfigs
Maintained under Kubernetes SIGs (kubernetes-sigs/aws-iam-authenticator) with Apache-2.0 license.
- CNCF / Kubernetes SIGs repository under Apache-2.0
Clear README flags and standard --help output.
- Upstream README documents
token,verify, andinitcommands
Security, Auth & Guardrails
Reads standard AWS SDK credentials (~/.aws/credentials, AWS_PROFILE, or AWS_ACCESS_KEY_ID / AWS_SESSION_TOKEN env vars) to presign STS tokens in memory.
Apache-2.0 open-source CLI; STS presigning calls are free.
# AWS IAM Authenticator Agent Rules - Keep `token` generation scoped with `-i <cluster-id>` and `-r <read-only-role-arn>` when possible. - Never log or print the full `status.token` output into shared transcripts or git files.
Agent-Ready Command Recipes
Safe Read-Only Queries
ExecCredential JSON token aws-iam-authenticator token -i my-eks-cluster
Generates a short-lived presigned STS bearer token wrapped in Kubernetes ExecCredential JSON.
aws-iam-authenticator token -i my-eks-cluster -r arn:aws:iam::123456789012:role/EksReadOnly
Assumes a least-privilege IAM role before generating the Kubernetes auth token.
Strengths for Agents
- + Outputs standard Kubernetes
ExecCredentialJSON natively with zero prompts. - + Read-only local STS presigning with
-icluster isolation and-rrole assumption. - + Lightweight static Go binary.
Caveats & Pitfalls
- ! Outputs live bearer tokens to stdout—avoid echoing
tokenoutput into LLM chat logs. - ! For standard AWS EKS setups,
aws eks get-tokennow covers the same workflow without an extra binary.