-
Notifications
You must be signed in to change notification settings - Fork 103
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
I can only call aws commands in the same terminal window if i use assume --exec -- /bin/bash
#764
Comments
Hi @airtonix, could you please confirm that the shell alias is correctly installed? https://docs.commonfate.io/granted/troubleshooting#manually-configuring-your-shell-profile You’ll want to ensure that the alias is added to a profile file loaded on your shell startup. |
ok it's there now and starship shows that it can see my aws profile after running However I now get
|
@airtonix could you please run |
Hello, I'm experiencing the same issue (I think).
We are not using SSO with AWS and I don't have a |
Thanks for the report @jazmon, I am wondering if this could be a recent regression somewhere in the project. Could you please share a copy of the affected profile config from ~/.aws/config? (redacting any account IDs etc). I’d like to try and reproduce this so would like to know if you have MFA etc configured on the profile. |
Additional possible note:
The credential process is a script I'm not able to share but it handles fetching the credentials w/ caching (I've removed caches here) and exports |
Thanks for the info. Just to confirm, does your It should print a JSON like this to stdout: {
"Version": 1,
"AccessKeyId": "an AWS access key",
"SecretAccessKey": "your AWS secret access key",
"SessionToken": "the AWS session token for temporary credentials",
"Expiration": "RFC3339 timestamp for when the credentials expire"
} If so, I should be able to try and replicate this with my own bash script. Also, if you happened to know the version of Granted that this was known to be working for that would be fantastic. |
It does actually output that, I didn't see it initially as it was my first time reading through the script so I missed it within the caching logic |
title says it all.
I feel like the docs are misleading.
The promised land is this:
The reality for me is this :
but If i do this:
this does not work:
The text was updated successfully, but these errors were encountered: