Follow the install doc or paste this to run an automated install script which auto-detects and handles Mac or Linux:
git clone https://github.com/HariSekhon/DevOps-Bash-tools
bash-tools/install/install_aws_cli.sh
Then configure depending on if you're using SSO or access keys etc.
First set up your AWS CLI as above.
Run the eks_kube_creds.sh
script from the DevOps-Bash-tools repo's aws/
directory.
This will find and configure all your kubernetes clusters in the current AWS account.
aws_kube_creds.sh
kubectl config get-contexts
switch to the cluster you want:
kubectl config use-context <name>
kubectl get pods --all-namespaces
Then see Kubernetes for configs, scripts and .envrc
.