System Servicesawsekskubernetescloudformationcli

eksctl

eksctl is the official CLI tool for Amazon EKS, enabling simple creation and management of EKS clusters on AWS. It allows users to create a cluster in minutes with a single command.

Description

eksctl is a simple CLI tool written in Go for working with Amazon EKS, AWS's managed Kubernetes service for EC2. It leverages CloudFormation under the hood to provision and manage clusters and associated resources efficiently.

The tool supports a wide range of operations including creating, deleting, associating, and disassociating resources with EKS clusters. It is designed for ease of use, allowing complex infrastructure setups with minimal commands.

Common use cases include rapid cluster provisioning for development, testing, or production environments, as well as managing node groups, IAM roles, and other EKS components through the CLI.

How It Works

eksctl operates as a Go-based CLI that interacts with AWS services, primarily using CloudFormation to define and deploy EKS cluster infrastructure as code. It abstracts complex AWS API calls into simple commands, handling stack creation, updates, and deletions for clusters, nodegroups, and other resources. The tool generates shell completions and supports verbose logging for debugging AWS interactions.

Installation

bash
sudo apt install eksctl

Flags

-C, --color stringtoggle colorized logs (valid options: true, false, fabulous) (default "true")
-d, --dumpLogsdump logs to disk on failure if set to true
-h, --helphelp for this command
-v, --verbose intset log level, use 0 to silence, 4 for debugging and 5 for debugging with AWS debug logging (default 3)

Examples

Display help for the eksctl CLI tool
eksctl -h
Create an EKS cluster in minutes with one command
eksctl create cluster
Create various EKS resources like nodegroups or IAM roles
eksctl create [resource]
Delete EKS resources such as clusters or nodegroups
eksctl delete [resource]
Associate resources with an existing EKS cluster
eksctl associate [resource]
Manage EKS Anywhere installations
eksctl anywhere
Generate shell completion scripts for bash, zsh or fish
eksctl completion
Updated 2026-04-16kali.org ↗