-
Notifications
You must be signed in to change notification settings - Fork 821
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
Error "source profile has no shared credentials" when AWS_PROFILE is set #410
Comments
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. |
This is still happening! I have to maintain wrapper scripts that unset the AWS_PROFILE variable before calling aws-vault. Even if there won’t be a fix for this, I’d love some feedback and suggestions of how I could set up my workflow better, or even just an acknowledgment of the issue. |
I can reproduce when AWS_SDK_LOAD_CONFIG=1 is set. Fixed in v5.3.1 (1ce3655) |
Environment
Windows 10, PowerShell
Steps to Reproduce
Make your
~/.aws/config
look something like this:Run aws-vault with the
AWS_PROFILE
environment variable set:Actual Result
Error message:
The Go SDK appears to take the
AWS_PROFILE
setting into account when it goes to STS for credentials. (Here?).Expected Result
I would think that, before requesting credentials from STS, the
AWS_PROFILE
variable should either be unset, or set to thesource_profile
value from the profile that's being used.Context
I'm trying to incorporate aws-vault into my existing workflow because we've started enforcing MFA on our accounts, and certain command-line tools don't support prompting for a code.
My existing workflow involves an
~/.aws/config
file like the above, account federation, a tool I made that manages theAWS_PROFILE
environment variable, and some PowerShell aliases that look basically like this:So my normal workflow will ideally look something like this:
Is there a better way to set this up?
The text was updated successfully, but these errors were encountered: