AWS CLI
The AWS Command Line Interface enables access to AWS services including EKS (Elastic Kubernetes Service) clusters.
Official documentation: docs.aws.amazon.com/cli
Prerequisites
- Package Managers - Homebrew, Chocolatey, or APT
- p6m CLI - Required for AWS SSO automation with
p6m sso
Installation
- Windows
- macOS
- Linux
# Using winget
winget install Amazon.AWSCLI
# Using Chocolatey
choco install awscli
Or download from AWS CLI for Windows.
# Using Homebrew
brew install awscli
# Download and install
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
Or see AWS CLI for Linux.
Verify Installation
aws --version
SSO Configuration
The p6m CLI automatically configures AWS SSO profiles:
# Configure AWS SSO (updates ~/.aws/config)
p6m sso aws
# Or configure all cloud platforms at once
p6m sso
This configures your ~/.aws/config with SSO profiles for all accessible AWS accounts.
Manual SSO Login
After initial configuration, authenticate when your session expires:
aws sso login --profile <profile-name>
EKS Cluster Access
After authentication, add EKS clusters to your kubeconfig:
aws eks update-kubeconfig --name <cluster-name> --region <region> --profile <profile-name>
The p6m CLI can also configure this automatically via p6m sso aws.
Related
- AWS CLI Documentation - Complete reference
- p6m CLI - Platform CLI with SSO automation
- Kubernetes Configuration - Cluster access setup