# 使用 Homebrew, chocolatey, MacPorts, Nix, scoop, winget 安装 aws-iam-authenticator

查看 aws-iam-authenticator 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:aws-iam-authenticator
```

## 代理安全回答

aws-iam-authenticator bridges AWS credentials into Kubernetes authentication.

- **凭据访问:** Reads AWS credentials, kubeconfig, and IAM identity context.
- **远程变更:** Authentication is not mutation, but it enables subsequent Kubernetes writes.
- **发布/制品风险:** Can unlock cluster access used by deployment tools.
- **推荐控制:** Gate credential use and cluster context switching.
- **代理使用指南:** Allow identity inspection; require approval before enabling cluster access for mutating tools.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install aws-iam-authenticator
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install aws-iam-authenticator
```

  证据: MacPorts ports tree: sysutils/aws-iam-authenticator/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#aws-iam-authenticator
```

  证据: nixpkgs package indexes: pkgs/by-name/aw/aws-iam-authenticator/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Chocolatey (92%):

```sh
choco install aws-iam-authenticator
```

  证据: Chocolatey community package catalog: aws-iam-authenticator from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','authy-desktop'

- Scoop (92%):

```sh
scoop install main/aws-iam-authenticator
```

  证据: Scoop official bucket manifest trees: bucket/aws-iam-authenticator.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Kubernetes.aws-iam-authenticator -e
```

  证据: Windows Package Manager source index: Kubernetes.aws-iam-authenticator from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:aws-iam-authenticator
- **软件包管理器:** Homebrew
- **版本:** 0.7.18
- **来源摘要:** Use AWS IAM credentials to authenticate to Kubernetes
- **主页:** <https://github.com/kubernetes-sigs/aws-iam-authenticator>
- **仓库:** <https://github.com/kubernetes-sigs/aws-iam-authenticator>
- **最后更新:** 2026-07-26T13:19:53+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- aws-iam-authenticator (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.7.18
## 项目历史与用法

AWS IAM Authenticator for Kubernetes is a Kubernetes authentication bridge that lets AWS IAM identities authenticate to Kubernetes clusters. It uses AWS STS GetCallerIdentity-signed tokens on the client side and maps IAM users, roles, or accounts to Kubernetes users and groups on the server side.

### 项目历史

The repository README says the initial work was driven by Heptio and that the project receives community contributions while being maintained by Heptio and Amazon EKS OSS Engineers. The tool arose from the need to avoid a separate Kubernetes credential system for clusters whose administrators already manage AWS IAM credentials.

AWS's Open Source Blog described the 2018 community project as initially driven by Heptio, used by the Amazon EKS open source team as a starting point for mapping AWS IAM to Kubernetes RBAC, and donated to the Kubernetes Cloud Provider SIG. A 2019 AWS post described the renamed AWS IAM Authenticator and kops integration after the earlier Heptio Authenticator work.

### 采用历史

The authenticator became important in the early Amazon EKS and Kubernetes-on-AWS ecosystem because it let kubectl authenticate through IAM rather than long-lived Kubernetes client certificates. AWS blog posts show it used for EKS, kops, LDAP/AD federation patterns, and self-managed Kubernetes clusters on AWS.

The official GitHub page shows a large project footprint for this batch's peer group, with roughly 2.3k stars, hundreds of forks, and more than 1,000 commits. Homebrew analytics showed 3,013 installs in 30 days, 9,650 in 90 days, and 35,664 in 365 days at the time of this batch, making it the dominant package in this batch by package-manager usage.

### 使用方式

Cluster administrators run the server as a DaemonSet or integrate it with kops, configure the API server to use its token webhook kubeconfig, and define role/user mappings through a mounted config file, an EKS-style ConfigMap, or IAMIdentityMapping custom resources. Users then configure kubectl exec authentication to call `aws-iam-authenticator token` for a cluster ID.

The client token is based on a signed STS GetCallerIdentity request with the cluster ID in the request context. The README documents AWS profile selection through kubeconfig exec environment variables and maps roles/users/accounts to Kubernetes usernames and groups for RBAC.

### 为什么软件包爱好者会关心

For package nerds, aws-iam-authenticator is a canonical Kubernetes cloud-provider sidecar CLI: a single binary that lives at the boundary of kubectl exec plugins, AWS STS signing, kops, EKS, and Kubernetes SIG ownership. It is also a useful marker of the transition from early Heptio/EKS bootstrap tooling to more integrated Kubernetes authentication workflows.

### 时间线

- 2018: AWS Open Source Blog describes aws-iam-authenticator as an initially Heptio-driven community project used by the Amazon EKS open source team.
- 2019: AWS posts updated kops deployment guidance for AWS IAM Authenticator after the Heptio Authenticator donation to Cloud Provider SIG.
- 2026: Homebrew formula metadata packages aws-iam-authenticator v0.7.18.

### Related projects

- Heptio Authenticator: the earlier name/history described by AWS blog posts.
- Amazon EKS: a major adoption driver for IAM-backed Kubernetes authentication.
- kops: Kubernetes-on-AWS cluster tooling with integration guidance for the authenticator.

### 来源

- <https://aws.amazon.com/blogs/opensource/deploying-aws-iam-authenticator-kubernetes-kops/>
- <https://aws.amazon.com/blogs/opensource/integrating-ldap-ad-users-kubernetes-rbac-aws-iam-authenticator-project/>
- <https://formulae.brew.sh/api/formula/aws-iam-authenticator.json>
- <https://github.com/kubernetes-sigs/aws-iam-authenticator>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: /etc/aws-iam-authenticator/config.yaml, /etc/kubernetes/aws-iam-authenticator/kubeconfig.yaml

## Credential files

- Unix: ~/.aws/credentials, ~/.aws/config
- Windows: %USERPROFILE%\.aws\credentials, %USERPROFILE%\.aws\config
## 其他软件包管理器记录

- Nix - aws-iam-authenticator: normalized package name match | nixpkgs package indexes: pkgs/by-name/aw/aws-iam-authenticator/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - aws-iam-authenticator: normalized package name match | MacPorts ports tree: sysutils/aws-iam-authenticator/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - aws-iam-authenticator: normalized package name match | Chocolatey community package catalog: aws-iam-authenticator from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','authy-desktop'
- Scoop - main/aws-iam-authenticator: normalized package name match | Scoop official bucket manifest trees: bucket/aws-iam-authenticator.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Kubernetes.aws-iam-authenticator: normalized package name match | Windows Package Manager source index: Kubernetes.aws-iam-authenticator from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/aws-iam-authenticator.yml](https://github.com/mxcl/pkgdb/blob/main/combined/aws-iam-authenticator.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
