Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eks option is not available in AWS CLI. How to install it?

I have installed the AWS CLI around 6 moths back and upgraded using the following command today.

pip install --upgrade awscli

The current version on my Ubuntu 18.04 machine is:

aws-cli/1.14.44 Python/3.6.5 Linux/4.15.0-23-generic botocore/1.8.48

When I try aws eks command, I am getting the following error:

Invalid choice: 'eks', maybe you meant:
    * es 

Is my aws cli is upgraded properly or should I install something else for EKS service?

like image 978
Karthikeyan Avatar asked Jul 27 '18 06:07

Karthikeyan


3 Answers

I had the same issue on El Capitan 10.11.6 and the only one worked solution was this:

sudo pip install awscli --ignore-installed six

Version 6 comes with distutils in El Capitan

Reference: https://github.com/aws/aws-cli#installation

like image 166
laimison Avatar answered Sep 22 '22 01:09

laimison


Solutions mentioned did not resolve my issue - this link helped me out in figuring the issue.

aws --version

displayed a version which was not the latest. EKS was introduced with version 1.15.32 - which means my version did not know EKS at all. Uninstalling and reinstalling did not work either, path was referring to some older version previously installed somewhere else. The solution was following installation instructions here followed by updating the path variable

the issue cannot be resolved until the aws --version command shows you any version less than 1.15.32.

The other solutions may be additional fixes needed afterwards, yet they will not work with an earlier version either.

like image 26
user3141326 Avatar answered Sep 20 '22 01:09

user3141326


Please check with the AWS region you configured for the AWS CLI you installed. AWS EKS is available only on US East (N. Virginia) and US West (Oregon). Do check it properly and configure the same for AWS CLI.

like image 30
Sunil Valmiki Avatar answered Sep 21 '22 01:09

Sunil Valmiki