I not too long ago encountered this error whereas making an attempt to run ‘kubectl’ instructions over our AWS EKS cluster, unsure if it is shared by extra k8s distributors.
Briefly, you’re utilizing an incompatible ‘AWS CLI’ model along with your present AWS EKS model.
To repair it — Replace your ‘AWS CLI’
Putting in or updating the newest model of the AWS CLI
This matter describes how you can set up or replace the newest launch of the AWS Command Line Interface (AWS CLI) on…
docs.aws.amazon.com
For Linux x86 (64-bit)
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && sudo ./aws/set up
For MacOS
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
For Window
C:> msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi
Hope it helped. Cheers.
Because of Yaniv Ben-hemo for writing & Idan Asulin For the QA.