Skip to content
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

$AWS_PROFILE is not honored #906

Closed
matt-pilgrim opened this issue Jul 31, 2017 · 5 comments
Closed

$AWS_PROFILE is not honored #906

matt-pilgrim opened this issue Jul 31, 2017 · 5 comments

Comments

@matt-pilgrim
Copy link

matt-pilgrim commented Jul 31, 2017

This mentions something similar, and suggests using --configure, but that apparently uses the ~/.s3cfg file. Shouldn't I be able to use a command like AWS_PROFILE=foo s3cmd ... and use the "foo" profile from ~/.aws/credentials?

As someone who routinely uses multiple aws profiles, this is painful because I don't really want to keep another file in sync, and I also don't want to have to view my credentials files and copy/paste environment variables for AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY.

If there is agreement that this is a bug, I can probably submit a patch.

EDIT: found this comment from 2015 suggesting using the credentials file, and this mention in the same thread that a patch would be accepted. Can anyone confirm this is still desired?

@AnthonyWC
Copy link

+1 I was going to submit the same issue.

@felipe1982
Copy link

If like this feature. I'm using awsume in the meantime which creates environment variables

Sent from my Google Pixel using FastHub

taraspos added a commit to taraspos/s3cmd that referenced this issue Apr 28, 2018
fviard added a commit that referenced this issue Jun 3, 2018
Issue #906 add support for $AWS_PROFILE
@alexanderkjeldaas
Copy link

alexanderkjeldaas commented Feb 17, 2020

@felipe1982 which awsume command do you use? awsume doesn't set any environment variables for me.

@felipe1982
Copy link

That's only what awsume does: sets environment variables. Make sure you have the Alias set, or run . awsume

@fviard
Copy link
Contributor

fviard commented Jul 4, 2021

Should be already fixed with merged PR #966 .

@fviard fviard closed this as completed Jul 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants