99designs / aws-vault

A vault for securely storing and accessing AWS credentials in development environments
MIT License
8.42k stars 815 forks source link

windows 10- Failed to run it with --server mode #217

Closed Wesam18 closed 5 years ago

Wesam18 commented 6 years ago

Running aws-vault with --server mode is failing and show below error aws-vault: error: exec: "": executable file not found in %PATH%

OS: Windows 10 Command used: aws-vault exec work --session-ttl=8h --assume-role-ttl=1h --server where ` work is the profile name.

lox commented 6 years ago

Could you try aws-vault exec work --session-ttl=8h --assume-role-ttl=1h --server -- CMD.EXE and let us know if that works?

Wesam18 commented 6 years ago

Yes, that work

amitsaha commented 6 years ago

Needed the workaround suggested by @lox - but it seems like it's working otherwise!

amitsaha commented 6 years ago

Just one note: Powershell ISE doesn't work - not sure why.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Agraphie commented 4 years ago

I have the same problem actually. It can be fixed with the above command. Maybe we should detect whether we are running windows and command is an empty string and then just set command=cmd?

steelx commented 3 years ago

works with Cmder terminal as well aws-vault exec dev-admin -- cmder.exe

and have the following environments: image

adamosimpson21 commented 2 years ago

I have attempted to run aws-vault exec myProfile -- CMD.EXE and it kicks me out of my WSL2 instance OR it goes back to my windows terminal (if I ctrl C I go back to WSL2). Normal aws-vault exec myProfile gets the executable not found in %PATH% as above image

sandeeppnaik commented 2 years ago

I am experiencing the same as @adamosimpson21's error. Any luck ?