<p>I am trying to update kubeconfig file using the below mentioned CLI</p>
<pre><code>aws eks update-kubeconfig --name EKS_cluster
</code></pre>
<p>It is giving me this error</p>
<pre><code>usage: aws [options] &lt;command&gt; &lt;subcommand&gt; [&lt;subcommand&gt; ...] [parameters]
To see help text, you can run:

  aws help
  aws &lt;command&gt; help
  aws &lt;command&gt; &lt;subcommand&gt; help
aws: error: argument operation: Invalid choice, valid choices are:

create-cluster                           | delete-cluster
describe-cluster                         | list-clusters
help
</code></pre>
<p>The was cli version I am using is</p>
<pre><code>aws-cli/1.15.58 Python/3.5.2 Linux/5.3.0-1030-aws botocore/1.10.57
</code></pre>
<p>Can someone help me with this?</p>

coder here
<p>From the docs of creating a kubeconfig for Amazon EKS <a href="https://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.html" rel="nofollow noreferrer">here</a></p>
<blockquote>
<p>Ensure that you have version 1.16.156 or later of the AWS CLI
installed.</p>
</blockquote>
<p>Clearly this is because of older version(1.15.58) of CLI. Upgrading the CLI should solve this issue.</p>
<p>Also now the CLI has got version 2 which you can install from <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html" rel="nofollow noreferrer">here</a></p>
