-
Notifications
You must be signed in to change notification settings - Fork 9
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
Export not working #32
Comments
Hi @kinderlars , yes,
P.S. You might consider to use awscredx if you are mostly interested in the role assumption. That project has focus on role assumptions. |
Hi @sam701, thanks for the quick response. I defined the Cheers, |
You do not actually need a separate What's happening when you type |
Was a typo, sorry about that.
|
It means |
Thanks a lot for the help. :) |
@sam701 , got the function
Had to rename the file from A new problem, now I am not able to run |
Could you paste your |
Hi @sam701, I removed the assume_role from my zshenv and now only using the helper script function.
In addition awstools now works as intended as well. Not sure what is different, but the issue can be closed, as it was on my end. Thanks again for supporting me. :) |
@sam701 : Sorry about it, forgot that the export with |
Hmm, I couldn't reproduce this issue. Here is what I did: cp ~/.config/awstools/config.toml /tmp/tt.toml
cat > /tmp/tt.sh <<EOF
function aws_assume() {
config_file="/tmp/tt.toml"
creds_file=\$(mktemp)
awstools --config \${config_file} assume --export \${creds_file} \$@; source \${creds_file};
cat \${creds_file}
rm \${creds_file}
}
EOF
zsh --version
export SHELL=$(which zsh)
source /tmp/tt.sh
aws_assume my_account my_role Can you try the same, obfuscate and paste the output? |
Hi,
I have installed awstools a few days ago and I think it is a really nice solution.
The problem is, the created keys are not exported to my shell.
Using zsh and not sure why this is happening.
Hope you can help.
Cheers,
Lars
The text was updated successfully, but these errors were encountered: