trek10inc / awsume

A utility for easily assuming AWS IAM roles from the command line.
https://awsu.me
MIT License
503 stars 91 forks source link

Alias Command for Windows #141

Closed kgibcc closed 1 year ago

kgibcc commented 3 years ago

Hello, AWSume works great on unix systems when setting the alias. Have you gotten to work with Windows? So far attempts have been unsuccessful. Any tips?

https://awsu.me/troubleshooting/#awsume-is-installed-but-when-i-run-it-my-environment-is-not-updating-with-my-profile-s-credentials

mbarneyjr commented 3 years ago

The alias shouldn't be necessary on Windows shells, the awsume.ps1 and awsume.bat files should be able to set your powershell or command-prompt shell's environment variables without an alias. Is this not the behavior you're experiencing? We did update to awsume 4.5.1, which did fix some bugs with the shell scripts that set environment variables, so if you upgrade do you still experience the same issue? Also note that I've experienced issues where pip install --upgrade awsume and pipx upgrade awsume (depending on how you installed awsume) don't actually update the shell scripts, so if you're still experiencing issues, one thing I've done to ensure the shell scripts are updated is to uninstall and then reinstall awsume,

If you're still hitting issues, could you provide more detail on your environment? What shell are you using? What python version is awsume installed with? What version of awsume are you using? How did you install awsume? Any other detail would be helpful to, thanks!

mtskillman commented 1 year ago

closing due to inactivity