Skip to content
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

Error accessing commands in PATH #11

Closed
skhelishalnev opened this issue Sep 20, 2023 · 7 comments
Closed

Error accessing commands in PATH #11

skhelishalnev opened this issue Sep 20, 2023 · 7 comments

Comments

@skhelishalnev
Copy link

Hi Lu!
I'm having this error right off the bat, the AWS cli package is installed via brew and in the PATH.

Am I missing some basic config for the plugin?

image
image

TIA
Eli

@coderazzi
Copy link
Owner

coderazzi commented Sep 20, 2023 via email

@skhelishalnev skhelishalnev changed the title Error Error accessing commands in PATH Sep 20, 2023
@skhelishalnev
Copy link
Author

skhelishalnev commented Sep 21, 2023

Hi Lu,

Yes the full path is working, but since I'm using credential_process with AWS config file, that invoke another executable in path like aws-vault, it fails the same on that executable, do you have the control over PATH var within the plugin scope?

@coderazzi
Copy link
Owner

coderazzi commented Sep 21, 2023 via email

@coderazzi
Copy link
Owner

coderazzi commented Sep 27, 2023 via email

@skhelishalnev
Copy link
Author

Oh sorry, I had no chance to test yet.

Answering your question, the credential_process executable aws-vault is called by name since it is already in PATH, when called from terminal. aws vault itself leverages the aws SDK so every time i call aws cli with specific profile the available credentials are temporary ones.

I'll try to test a workaround tomorrow by using the full path for aws-vault in aws config file and will post back. It's interesting tho to get to the bottom of the issue and understand why a PATH available to the plugin is different.

@skhelishalnev
Copy link
Author

skhelishalnev commented Sep 28, 2023

Hey Lu,
Just checked and your suggestion works, when adding full paths the plugin is able to get and configure token.

However, it would be great to understand how we can modify the PATH that plugin receive from the environment so we can use commands without specifying the full path (apparently managed by IDEA itself).

@coderazzi
Copy link
Owner

coderazzi commented Sep 29, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants