There are more AWS SDK examples available in the AWS Doc SDK Examples
Use ListUpdates with a CLI
The following code examples show how to use ListUpdates.
- CLI
-
- AWS CLI
-
Example 1: To list the updates for a cluster
The following
list-updatesexample lists the current updates for a cluster namedexamplein your default region.aws eks list-updates \ --nameexampleOutput:
{ "updateIds": [ "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111" ] }Example 2: To list all the update IDs for an Amazon EKS Node group
The following
list-updatesexample lists all the update IDs for an Amazon EKS Node group.aws eks list-updates \ --namemy-eks-cluster\ --nodegroup-namemy-eks-managed-node-groupOutput:
{ "updateIds": [ "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222" ] }Example 3: To list all the update IDs for an Amazon EKS add-on
The following
list-updatesexample lists all the update IDs for an Amazon EKS Add-on.aws eks list-updates \ --namemy-eks-cluster\ --addon-namevpc-cniOutput:
{ "updateIds": [ "a1b2c3d4-5678-90ab-cdef-EXAMPLE33333" ] }For more information, see Update existing cluster to new Kubernetes version in the Amazon EKS User Guide.
-
For API details, see ListUpdates
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell V4
-
Example 1: This cmdlet lists the updates associated with an Amazon EKS cluster or managed node group in your AWS account, in the specified Region.
Get-EKSUpdateList -Name "PROD"Output:
ee708232-7d2e-4ed7-9270-d0b5176f0726-
For API details, see ListUpdates in AWS Tools for PowerShell Cmdlet Reference (V4).
-
- Tools for PowerShell V5
-
Example 1: This cmdlet lists the updates associated with an Amazon EKS cluster or managed node group in your AWS account, in the specified Region.
Get-EKSUpdateList -Name "PROD"Output:
ee708232-7d2e-4ed7-9270-d0b5176f0726-
For API details, see ListUpdates in AWS Tools for PowerShell Cmdlet Reference (V5).
-