The Ops Community ⚙️

Saar Ryan Cohen
Saar Ryan Cohen

Posted on

Fix: invalid apiVersion “”

aws + k8s

I recently encountered this error while trying to run ‘kubectl’ commands over our AWS EKS cluster, not sure if it's shared by more k8s vendors.

In short, you are using an incompatible ‘AWS CLI’ version with your current AWS EKS version.

To fix it — Update your ‘AWS CLI’

Installing or updating the latest version of the AWS CLI
This topic describes how to install or update the latest release of the AWS Command Line Interface (AWS CLI) on…

For Linux x86 (64-bit)

curl "" -o "" && unzip && sudo ./aws/install

For MacOS

curl "" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /

For Window

C:\> msiexec.exe /i

Hope it helped. Cheers.

Thanks to Yaniv Ben-hemo for writing & Idan Asulin For the QA.

Top comments (0)