Skip to main content

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

Installation

# Using winget
winget install Amazon.AWSCLI

# Using Chocolatey
choco install awscli

Or download from AWS CLI for Windows.

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.