<p>i m trying diff commands in aws eks and when there is wrong cmd it spits out too long of output.</p>
<pre><code>aws kubectl get pod

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 command: Invalid choice, valid choices are:

accessanalyzer                           | account

acm                                      | acm-pca

alexaforbusiness                         | amp

amplify                                  | amplifybackend
</code></pre>
<p>in case i only want to see the error msg and not 2 screens of all possible cmds how to limit the output in case of error?</p>
<p>i tried :</p>
<pre><code>aws eks describe-cluster --voice wrongparameter | head 10
</code></pre>
<p>but it s not working</p>

ERJAN
<p>There is no such command <code>aws kubectl get pod</code> !!</p>
<p>It is either <code>kubectl get pod</code> to list pods in current namespace if you have <a href="https://kubernetes.io/docs/tasks/tools/#kubectl" rel="nofollow noreferrer">kubectl</a> cli installed and configured with the correct context or <code>aws eks describe-cluster --name demo</code> to describe your AWS Kubernetes cluster with name <code>demo</code> in the current region and profile.</p>
