<pre><code>eksctl  get nodegroups --cluster=cluster-name --profile=dev
aws eks list-nodegroups --cluster=cluster-name --profile=dev
</code></pre>
<p>First result is correct <br />
Second result is air as follows:</p>
<pre><code>{ 
    &quot;nodegroups&quot;: [] 
} 
</code></pre>
<p>I used these two commands to get the nodegroup of the cluster, but found that the results were not consistent.  <br />
The configuration file I used was the same ~/.aws/config.  <br />
The cluster_name was checked by the command. Come out, these two commands can correctly detect cluster  but cannot detect nodegroup <br />
Thanks in advance</p>

gophergfer
<p>According to eksctl <a href="https://eksctl.io/usage/managing-nodegroups/#listing-nodegroups" rel="noreferrer">documentation</a>:</p>
<blockquote>
<h3>Listing nodegroups</h3>
<p>To list the details about a nodegroup or all of the nodegroups, use:</p>
<p><code>eksctl get nodegroup --cluster=&lt;clusterName&gt; [--name=&lt;nodegroupName&gt;]</code></p>
<h3>Nodegroup immutability</h3>
<p>By design, nodegroups are immutable. This means that if you need to
change something (other than scaling) like the AMI or the instance
type of a nodegroup, you would need to create a new nodegroup with the
desired changes, move the load and delete the old one. Check
<a href="https://eksctl.io/usage/managing-nodegroups/#deleting-and-draining" rel="noreferrer">Deleting and
draining</a>.</p>
</blockquote>
<p>And for <code>list-nodegroup</code> from AWS <a href="https://docs.aws.amazon.com/cli/latest/reference/eks/list-nodegroups.html#list-nodegroups" rel="noreferrer">documentation</a></p>
<blockquote>
<p>Lists the Amazon EKS managed node groups associated with the specified cluster in your AWS account in the specified Region. Self-managed node groups are not listed.</p>
</blockquote>
<p>As you can see there are differences in these commands such as Self-managed node groups are not listed in the second command.</p>
