Control: EKS clusters should run on a supported Kubernetes version
Description
This control checks whether an AWS EKS cluster is running on a supported Kubernetes version. The control fails if the EKS cluster is running on an unsupported version. If your application doesn't require a specific version of Kubernetes, we recommend that you use the latest available Kubernetes version that's supported by EKS for your clusters.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.eks_cluster_with_latest_kubernetes_version
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.eks_cluster_with_latest_kubernetes_version --share
SQL
This control uses a named query:
select arn as resource, case -- eks:oldestVersionSupported (Current oldest supported version is 1.19) when (version)::decimal >= 1.19 then 'ok' else 'alarm' end as status, case when (version)::decimal >= 1.19 then title || ' runs on a supported kubernetes version.' else title || ' does not run on a supported kubernetes version.' end as reason , region, account_idfrom aws_eks_cluster;