Skip to main content

A simple and flexible commandline tool for AWS EKS management

Project description

Build Status Documentation Status Version License MIT

A simple and flexible command-line tool for AWS EKS management

Prerequisites

  • Available AWS credentials (configured as boto3)

  • Heptio authenticator binary (Section To install heptio-authenticator-aws for Amazon EKS in AWS EKS User Guide)

  • [Optional] kubectl (1.10 and later) for kubernetes cluster operations

Quick Start

Installation

As easy as the standard python way by using pip.

$ pip install ekscli

Optionally, after installation, command-completion can be achieved with:

$ eval "$(_EKS_COMPLETE=source eks)"

Use ECKCLI

Note: AWS fees will be charged in your account for the AWS resources created by ekscli.

The simplest way to create a cluster by running ekscli with almost everything default.
This will create an EKS cluster including the control plane (managed master by AWS), a node group and a kubectl configuration file (KUBECONFIG or $HOME/.kube/config).
$ eks create cluster --name=dev

# EKS cluster name can be set as an environment variable
$ export EKS_CLUSTER_NAME=dev
$ eks create cluster

To create the EKS cluster’s control plane (master) only:

$ eks create cluster --name=dev --cp-only

To create the EKS cluster’s control plane (master) with existing subnets of a VPC, a predefined IAM role, an existing EC2 KeyPair etc.:

$ eks create cluster --name=dev --cp-only \
  --subnets=subnet-1234567,subnet-abcdef1 \
  --cp-role eks-default-role \
  --region us-west-2 \
  --kubconfig ./dev.conf \
  --heptio-auth /tmp/heptio-auth-aws \
  --keyname dev \
  --node-sg-ingress port=22,cidr=10.0.0.0/8 \
  --tags Env=dev,Project=eks-poc

The simplest way to create a node group

$ eks create node-group --name=dev --node-name=workers

To create a node group with more options

$ eks create node-group --name=dev --node-name=another \
  --node-role=eks-worker-s3 \
  --node-subnets=subnet-1234567 \
  --node-min=1 \
  --node-max=10
  --node-sg-ingress port=22,cidr=10.0.0.0/8 \
  --node-sg-ingress protocol=tcp,from=8080,to=8088,cidr=0.0.0.0/0 \
  --region us-west-2 \
  --kubconfig ./dev.conf \
  --heptio-auth /tmp/heptio-auth-aws \
  --keyname dev \
  --tags Env=dev,Project=eks-poc

To activate Bash auto-completion for ekscli

$ eval "$(_EKS_COMPLETE=source eks)"

Features

  • Simple and concise command line interface

  • Flexible configuration

  • Plain vanilla EKS cluster without unrequired resources running Kubernetes clusters

  • EKS resources managed by AWS CloudFormation

  • Command line auto-completion supported for Bash and Zsh

Roadmap

  • Output cluster information to different formats: yaml, json

  • Update the cluster and node groups

  • Create from templatable configuration files

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ekscli-0.1.0rc2.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

ekscli-0.1.0rc2-py2.py3-none-any.whl (20.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ekscli-0.1.0rc2.tar.gz.

File metadata

  • Download URL: ekscli-0.1.0rc2.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ekscli-0.1.0rc2.tar.gz
Algorithm Hash digest
SHA256 f7551effb32b79d6c3543ef019f77270caf2b28ded354d866137f27e53bbcd67
MD5 ccbb826a402398d210f108e5f7160ab8
BLAKE2b-256 fd78e0e9f12d05fc4edbc9b2f865a2c87d9f23af669c8d0b98845cd76e597f88

See more details on using hashes here.

File details

Details for the file ekscli-0.1.0rc2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ekscli-0.1.0rc2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1c9921c0ae97a148c6119547829b1191cb3c692fecd2e68bad1b93a340f587e2
MD5 b35a0100f454cc5fd89428cb5e418c39
BLAKE2b-256 741b2c303f5f344223dfe43ca2e63aacd507e6629c8f52fe297ba6f7ac4d7217

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page