Skip to content

Add AWS_CREDENTIAL_PROFILES_FILE Environment Variable #1196

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

Conversation

jans510
Copy link
Contributor

@jans510 jans510 commented Oct 22, 2016

Adding the AWS_CREDENTIAL_PROFILES_FILE Environment Variable, that is for example used in the Java and Python AWS_SDK . Using this variable you can specify a different location of the shared credential file.

@jans510 jans510 changed the title Added AWS_CREDENTIAL_PROFILES_FILE Environment Variable Add AWS_CREDENTIAL_PROFILES_FILE Environment Variable Oct 22, 2016
@coveralls
Copy link

coveralls commented Oct 22, 2016

Coverage Status

Coverage remained the same at 88.049% when pulling 52637f7 on jans510:Add-AWS_CREDENTIAL_PROFILES_FILE-Environment-Variable into 9611fef on aws:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.049% when pulling 52637f7 on jans510:Add-AWS_CREDENTIAL_PROFILES_FILE-Environment-Variable into 9611fef on aws:master.

@jans510
Copy link
Contributor Author

jans510 commented Dec 3, 2016

@chrisradek any comments?

@jeskew
Copy link
Contributor

jeskew commented Dec 20, 2016

Hi @jans510,

It doesn't look like the python SDK supports the AWS_CREDENTIAL_PROFILES_FILE environment variable (it uses AWS_CREDENTIAL_FILE instead, and this feature is maintained for compatibility with some older EC2 CLI tools). Could you tell me a bit more about your use case? I think it would be a breaking change if an environment variable that used to only affect Java applications were to suddenly be picked up by any new JavaScript applications, too, but I'd like to help you find a workaround.

@jans510
Copy link
Contributor Author

jans510 commented Dec 20, 2016

Hi @jeskew, thanks for the reply.

I only heard that the python sdk supports this environment variable but didn't looked at it. When we run our java applications in a docker container locally, we use this environment variable to specify the location of the credentials files directory on the container startup. A short time ago we started developing nodejs backends and wanted to start them similar to our java applications, running a container locally and setting this variable with the docker run command, which didn't work as this variable doesn't exists.

I thought it would be a good idea to support the same environment variables on the s3 sdks, but I can understand your concerns, you never know which use cases might be there to use different credentials for different applications on the same host. It would be great if you have any suggestions on solving this problem, at the moment we 'hard code' this environment variable in our nodejs backends, setting the SharedIniFileCredentials manually.

@lock
Copy link

lock bot commented Sep 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants