Skip to main content

cluster_versions

Creates, updates, deletes, gets or lists a cluster_versions resource.

Overview

Namecluster_versions
TypeResource
Idaws.eks.cluster_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cluster_typestringThe type of cluster this version is for.
cluster_versionstringThe Kubernetes version for the cluster.
control_plane_component_configobjectThe default control plane component configuration and constraints for this Kubernetes version.
control_plane_scaling_tiersarrayThe available provisioned control plane scaling tiers and their capabilities for this Kubernetes version.
default_platform_versionstringDefault platform version for this Kubernetes version.
default_versionbooleanIndicates if this is a default version.
end_of_extended_support_datestring (date-time)Date when extended support ends for this version.
end_of_standard_support_datestring (date-time)Date when standard support ends for this version.
kubernetes_patch_versionstringThe patch version of Kubernetes for this cluster version.
release_datestring (date-time)The release date of this cluster version.
statusstringThis field is deprecated. Use versionStatus instead, as that field matches for input and output of this action. Current status of this cluster version. (unsupported, standard-support, extended-support)
version_statusstringCurrent status of this cluster version. (UNSUPPORTED, STANDARD_SUPPORT, EXTENDED_SUPPORT)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_cluster_versionsselectregionclusterType, maxResults, nextToken, defaultOnly, includeAll, clusterVersions, status, versionStatusLists available Kubernetes versions for Amazon EKS clusters.
update_cluster_versionupdatename, region, versionUpdates an Amazon EKS cluster to the specified Kubernetes version. Your cluster continues to function during the update. The response output includes an update ID that you can use to track the status of your cluster update with the DescribeUpdate API operation. Cluster updates are asynchronous, and they should finish within a few minutes. During an update, the cluster status moves to UPDATING (this status transition is eventually consistent). When the update is complete (either Failed or Successful), the cluster status moves to Active. If your cluster has managed node groups attached to it, all of your node groups' Kubernetes versions must match the cluster's Kubernetes version in order to update the cluster to a new Kubernetes version.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
namestringThe name of the Amazon EKS cluster to update.
regionstringAWS region (default: us-east-1)
clusterTypestringThe type of cluster to filter versions by.
clusterVersionsarrayList of specific cluster versions to describe.
defaultOnlybooleanFilter to show only default versions.
includeAllbooleanInclude all available versions in the response.
maxResultsintegerMaximum number of results to return.
nextTokenstringPagination token for the next set of results.
statusstringThis field is deprecated. Use versionStatus instead, as that field matches for input and output of this action. Filter versions by their current status.
versionStatusstringFilter versions by their current status.

SELECT examples

Lists available Kubernetes versions for Amazon EKS clusters.

SELECT
cluster_type,
cluster_version,
control_plane_component_config,
control_plane_scaling_tiers,
default_platform_version,
default_version,
end_of_extended_support_date,
end_of_standard_support_date,
kubernetes_patch_version,
release_date,
status,
version_status
FROM aws.eks.cluster_versions
WHERE region = '{{ region }}' -- required
AND clusterType = '{{ clusterType }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
AND defaultOnly = '{{ defaultOnly }}'
AND includeAll = '{{ includeAll }}'
AND clusterVersions = '{{ clusterVersions }}'
AND status = '{{ status }}'
AND versionStatus = '{{ versionStatus }}'
;

UPDATE examples

Updates an Amazon EKS cluster to the specified Kubernetes version. Your cluster continues to function during the update. The response output includes an update ID that you can use to track the status of your cluster update with the DescribeUpdate API operation. Cluster updates are asynchronous, and they should finish within a few minutes. During an update, the cluster status moves to UPDATING (this status transition is eventually consistent). When the update is complete (either Failed or Successful), the cluster status moves to Active. If your cluster has managed node groups attached to it, all of your node groups' Kubernetes versions must match the cluster's Kubernetes version in order to update the cluster to a new Kubernetes version.

UPDATE aws.eks.cluster_versions
SET
version = '{{ version }}',
clientRequestToken = '{{ clientRequestToken }}',
force = {{ force }},
rollbackConfig = '{{ rollbackConfig }}'
WHERE
name = '{{ name }}' --required
AND region = '{{ region }}' --required
AND version = '{{ version }}' --required
RETURNING
update;