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

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


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.