-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User Exec command "/usr/local/bin/aws" not found on host. #2079
Comments
I got it working after installing aws on Windows, i had to configure it all up again. |
related to #2087 |
Got a workaround that aliases the aws command from WSL:
|
Another workaround is to copy paste the kubeconfg to Lens and set
Also noticed that in order to get env variables present in Kubeconfig passed properly to
or move those to args in Kubeconfig |
Did you actually get this working with multiple profiles? I've configured my kubeconfig similar to yours and tried to use WSLENV like this |
same issue on mac os, installed with homebrew, aws is in path, I believe this was fixed and it regressed. |
Uninstalling lens via brew and reinstalling binary directly worked. |
@ashtonian interesting... hopefully The PR I just opened fixes the issue even for homebrew users. |
Case #3683 is not the same as i am not using WSL yet i got my case closed and i still can't use lens on native windows while my kubectl and aws both work under powershell and cmd |
@Vanheelsing Hopefully #3664 will fix it for you |
Thanks for the tip! You can also skip adding it to your path by creating the file at %LOCALAPPDATA%\Programs\Lens\aws.bat |
@drlarsen77 couldn't find that specific folder. Usually inside |
@manuelnucci I'm not sure where you're looking, but %LOCALAPPDATA% is a user environment variable that always points to C:\Users\username\AppData\Local -- that's why it's part of the name. :) |
My mistake, I was looking somewhere else! Thanks for the tip then. |
Describe the bug
I am using Lens on Windows, all my interactions with a kubenetes cluster i perform via kubectl installed on Windows Subsystem for Linux (WSL). I have also installed aws cli on WSL. My kubeconfig file is in WSL, i am able to reference the file in Lens using the path
\\wsl$\Ubuntu-18.04\home\user\.kube
When i try to use one of my aws eks clusters, i get the above error message. I am assuming it's because it's trying to use aws cli from windows.
Is there any way to get it working without having to install aws cli in two places (WSL and Windows)?
To Reproduce
Steps to reproduce the behavior:
Use a kubeconfig file that contains a reference an aws eks cluster, see below.
The problem arises where the
command: /usr/local/bin/aws
has been defined, i added the fully qualified path but that hasn't helped.Expected behavior
It should be able to load the cluster
Environment (please complete the following information):
Logs:
When you run the application executable from command line you will see some logging output. Please paste them here:
Kubeconfig:
Quite often the problems are caused by malformed kubeconfig which the application tries to load. Please share your kubeconfig, remember to remove any secret and sensitive information.
The text was updated successfully, but these errors were encountered: