-
Notifications
You must be signed in to change notification settings - Fork 778
Profile is not picked up properly using aws-shell #166
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
Comments
Hi @seroandone, I'm not able to reproduce this issue on my system (macOS 10.12, Python 2.7.10) on a fresh install of aws-shell 0.1.1. Are you still seeing this issue and if so, consistently? |
Thanks @donnemartin I think i got the problem. I was having AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in my environment variables, so that took precedence over the profile I mentioned when i logged into aws-shell. Unfortunately some apps that I have needs this environment variables. I would expect if i specifically provide -profile during login to aws-shell, I assumed it will use that instead of even the environment variable. Or at lease when i change to a profile while I am in the aws-shell. But this is ok if it is the way it is as well. So one must not have environment variable if they got to use the profile feature. Thanks for looking into this. |
If |
Suggestion: This would have probably been easier to debug if |
I've just downloaded both awscli & aws-shell (Windows 10) Profiles work fine in cli and I get correct json output from ec2 describe-hosts command after setting profile using set AWS_PROFILE=xxxxxxxxx However when I start aws-shell and provide same profile name ie aws-shell -p xxxxxxxxx and run same command I am not authorised to perform the operation. Same issue I think |
I have two profiles in my .aws folder.
When I login to aws-shell I provide the profile
Below is the output of '.profile'
When I did 'ec2 describe-instances' it list all ec2's under my 'office' profile instead of 'personal'.
Since I set profile while entering aws-shell. I would expect both the above two cases (1 and 2) to return the same result i.e. the one returned by 2 (as it is correct). I would expect the same from 1 as well.
I am using aws-shell version (0.1.1)
The text was updated successfully, but these errors were encountered: