Search code examples
python-3.xboto3aws-cli

Is there a reliable order to the updateIds returned by `EKS.Client.list_updates()`?


I am using EKS.Client.list_updates() to get the updateIds for a managed nodegroup associated with an EKS cluster. I would like to use:

client.list_updates(
    name=myCluster,
    nodegroupName=myNodegroup,
    maxResults=1
)

to get the last update to the nodegroup.

Can I rely on the order of the results to be ordered from most recent to least recent?

The documentation does not mention any order.


Solution

  • Upon further testing, I have concluded that there is no definite order to the updateIDs returned.