aws eks list-nodegroups
Lists the managed node groups associated with the specified cluster in your Amazon Web Services account in the specified Amazon Web Services Region. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To list all the node groups in an Amazon EKS cluster
The following list-nodegroups example list all the node groups in an Amazon EKS cluster.
aws eks list-nodegroups --cluster-name my-eks-clusterIdentify--cluster-nameThe name of your cluster.Its output
{
"nodegroups": [
"my-eks-managed-node-group",
"my-eks-nodegroup"
]
}For more information, see Simplify node lifecycle with managed node groups in the Amazon EKS User Guide.
Options
--cluster-nameThe name of your cluster.--max-resultsThe maximum number of results, returned in paginated output.--next-tokenThe nextToken value returned from a previous paginated request, where maxResults was used and the results exceeded the value of that parameter.