Overview
Attempting to use OpenLens locally to access a remote AWS EKS environment.
AWS SSO has been configured successfully, and access via the local terminal works as expected. However, OpenLens fails to connect to the cluster.
Environment Setup
AWS SSO login and verification:
aws sso login --profile profileA
aws sts get-caller-identity --profile profileA
EKS kubeconfig update:
aws eks update-kubeconfig --name clusterA --profile profileA
Actual Result:
- Access via local terminal works:
kubectl get nodes
- OpenLens fails to connect to the cluster and returns the following error: Error while proxying request: getting credentials: exec: executable aws not found. It looks like you are trying to use a client-go credential plugin that is not installed. To learn more about this feature, consult the documentation available at: https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins Failed to get /version for clusterId=: Internal Server Error
The Fix
- 1. Verify AWS CLI installation Run this in a terminal:
aws --version
- 2. Add AWS CLI to system PATH Check:
which aws
Typical locations:
macOS (Intel): /usr/local/bin/aws
macOS (Apple Silicon): /opt/homebrew/bin/aws
Then make it globally available.
macOS (Apple Silicon – most common)
sudo ln -s /opt/homebrew/bin/aws /usr/local/bin/aws
Restart OpenLens completely.
- 3. Or Hardcode full path to AWS CLI in kubeconfig.
Edit your kubeconfig:
~/.kube/configChange: command: aws To: command: /opt/homebrew/bin/aws This guarantees OpenLens can execute it.
Top comments (0)