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_CREDENTIAL_FILE as a configuration source #183

Closed
Bekt opened this issue Jul 18, 2015 · 8 comments
Closed

AWS_CREDENTIAL_FILE as a configuration source #183

Bekt opened this issue Jul 18, 2015 · 8 comments
Labels
feature-request This issue requests a feature.

Comments

@Bekt
Copy link

Bekt commented Jul 18, 2015

The configuration files are not always located at ~/.aws. How should one go about specifying the credentials file or path?

@SamCyanide
Copy link

They should be... on windows you can download the 'awscli' package from pip, and type aws configure to setup your credentials. Or you can set up environment variables on both systems.

@Bekt
Copy link
Author

Bekt commented Jul 18, 2015

Huh? There are a lot of cases when the credentials file should be in a system-wide location. For example, cron jobs, nobody user scripts, etc.

@Bekt
Copy link
Author

Bekt commented Jul 18, 2015

Additionally, AWS CLI supports AWS_CONFIG_FILE.

@rayluo
Copy link
Contributor

rayluo commented Jul 23, 2015

@Bekt May I ask your use case?

Besides the environment variable AWS_CONFIG_FILE which you mentioned, I have just tried launching an aws command in my crontab, it can still access my ~/.aws settings and works properly.

The nobody user scripts case won't work indeed, but that is caused by there is typically no aws relevant packages installed for user "nobody".

@rayluo rayluo added question closing-soon This issue will automatically close in 4 days unless further comments are made. labels Jul 23, 2015
@Bekt
Copy link
Author

Bekt commented Jul 23, 2015

@rayluo: I wrote a very-small post here: http://bekt.github.io/p/docker-aws-credentials/

Hope that explains.

Edit: I don't think boto3 supports AWS_CONFIG_FILE either?

@jamesls
Copy link
Member

jamesls commented Jul 28, 2015

This is being tracked here: boto/botocore#600

The one hiccup is that we can't use AWS_CREDENTIAL_FILE, because boto3 uses that for a legacy config file format. We'd probably have to name it AWS_SHARED_CREDENTIAL_FILE or something similar.

@jamesls jamesls added feature-request This issue requests a feature. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. question labels Jul 28, 2015
@Bekt
Copy link
Author

Bekt commented Jul 28, 2015

👍

@jamesls
Copy link
Member

jamesls commented Aug 11, 2015

Pull request is being reviewed at boto/botocore#623. This will be available in boto3 as soon as the linked PR is merged. Closing out issue as the only remaining work is in the boto/botocore repo.

@jamesls jamesls closed this as completed Aug 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request This issue requests a feature.
Projects
None yet
Development

No branches or pull requests

4 participants