--- id: eks-token version: "0.3.0" license: unclear license_treatment: unclear maintenance: active --- # eks-token — EKS Token package, an alternate to "aws eks get-token ..." CLI License: unclear · Maintenance: active · Downloads: 275.3K/mo ## What it is and what it does eks-token is a Python library that generates Kubernetes authentication tokens for AWS EKS clusters without invoking the AWS CLI. It wraps the token generation logic that `aws eks get-token` provides, making it suitable for programmatic use in Python applications that need to authenticate to EKS. The package returns tokens in the Kubernetes ExecCredential format, which can be used directly by kubectl or other Kubernetes clients. The library depends on awscli and supports Python 3.6 and later. It allows you to specify a cluster name, optionally an IAM role ARN to assume, and a custom AWS region. The token is returned as part of a structured response containing metadata and expiration information, which you can extract and use for cluster authentication. Use it for: - Automate EKS cluster authentication in CI/CD pipelines without shelling out to the AWS CLI. - Generate tokens for specific IAM roles when your application needs cross-role or cross-account EKS access. - Embed EKS authentication directly in Python deployment or management tools that orchestrate Kubernetes workloads on AWS. - Programmatically obtain tokens with custom region configuration for multi-region EKS deployments. - Integrate EKS authentication into custom credential providers or Kubernetes client libraries written in Python. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Generates Kubernetes authentication tokens for AWS EKS clusters programmatically, replacing the need to call the AWS CLI's `aws eks get-token` command. Yes, if you need programmatic EKS token generation in Python and want to avoid subprocess calls to the AWS CLI. The package is actively maintained, has low install friction, and carries no known vulnerabilities. The main caveat is that the license is unclear—verify it directly in the repository before use in proprietary projects. It is suitable for production use in CI/CD, deployment automation, and Kubernetes client integrations. ## Install pip install eks-token uv add eks-token poetry add eks-token ## Installing eks-token Before you install: Low install friction with a pure Python wheel. The package is actively maintained with a recent commit on 2026-08-12 and has been in active development since its first release on 2020-10-01. It depends only on awscli, which is a common AWS tooling dependency. License in practice: License status is unclear—no SPDX identifier or raw license text is available in the package metadata. Before using in a commercial or proprietary project, verify the actual license by checking the repository directly. Quickstart: pip install eks-token from eks_token import get_token token = get_token(cluster_name='my-cluster')['status']['token'] print(token) Requires AWS credentials to be configured in the environment (via awscli or AWS SDK configuration) to authenticate against EKS. Verify before relying: - Whether the package supports IAM role assumption for cross-account EKS access beyond the role_arn parameter shown in examples. - Token expiration handling and refresh behavior when tokens expire during long-running operations. - Performance characteristics when generating tokens for multiple clusters or roles in sequence. ## Package facts - License: not declared (unclear) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 275.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags eks kubernetes authentication token, aws eks token generation, k8s aws credential provider, eks cluster access token, aws iam role token signing, kubernetes eks auth, eks token alternative to cli, aws-eks, kubernetes-auth, iam-integration [View on SkillFed](https://skillfed.io/packages/eks-token) · [View on PyPI](https://pypi.org/project/eks-token/)