Closed eddyaman closed 5 years ago
Oddly enough I just had the same issue start yesterday. It used to work and in fact still works on some of my old shells that are still running.
When I do a --debug I get to:
awsume.awsumepy.export_data : Exporting data to shell wrapper And there are no errors.
Both a terminal that is working and a terminal that is not working have the same logs.
Its like it is not executing the exports depending on the terminal, but not generating any errors because of it..
Doing a little troubleshooting, it does not matter what is exported in the /usr/local/bin/awsume bash script, it does not get set. I think what is happening is awsume is running in a subshell for some reason so the vars do not get set. I am able to verify that the subshell is in fact getting the export.
Awsume relies on an alias to be set in order to function properly. This alias source
's awsume, so that when the awsume shell script exports the AWS environment variables, it applies to your current shell.
Ensure that you have an alias set up
Follow the troubleshooting guide for more info, and let me know if you get your issue resolved:
Thanks.. I was working my way there and almost had it. I guess I should not start poking around until I had has my coffee...
Great work btw, thank you so much for this script.
hey @mbarneyjr , thanks for the help mate. It worked. 🎉 I didn't realize that you have to setup the alias, because I never had to do that in windows. Thanks again and awesome tool.
Hi, I am trying to use awsume to assume a role, but it doesn't switch role when I input
awsume <role_name>
. As a workaround, I have to inputawsume <role_name> -s
and then paste the output again.Can you please help me on what am I doing wrong?
Thanks