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

api: enable shared config by default #201

Merged
merged 1 commit into from Feb 7, 2020

Conversation

andrewsharon
Copy link
Contributor

Fixes #198

Description of changes:
The AWS SDK for Go ignores the shared config file ~/.aws/config by
default, which is the inherited behavior of
amazon-ecr-credential-helper. This commit changes the default behavior
to have ~/.aws/config enabled.

The shared config file usage can be controlled through the environment
variable AWS_SDK_LOAD_CONFIG. To disable this behavior, set
AWS_SDK_LOAD_CONFIG=false.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@samuelkarp samuelkarp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for sending this! I have a few stylistic comments/suggestions that I'd like to see addressed and I'd also like to see the manual page (docs/docker-credential-ecr-login.1) updated.

ecr-login/api/factory.go Outdated Show resolved Hide resolved
ecr-login/api/factory_test.go Outdated Show resolved Hide resolved
The AWS SDK for Go ignores the shared config file `~/.aws/config` by
default, which is the inherited behavior of
amazon-ecr-credential-helper. This commit changes the default behavior
to have `~/.aws/config` enabled.

The shared config file usage can be controlled through the environment
variable `AWS_SDK_LOAD_CONFIG`. To disable this behavior, set
`AWS_SDK_LOAD_CONFIG=false`.
@andrewsharon
Copy link
Contributor Author

Thanks for the feedback! I've made the changes and updated the PR.

@samuelkarp
Copy link
Contributor

This code looks good to me; just waiting for the Travis build to complete before approving.

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

Successfully merging this pull request may close these issues.

Enable shared config by default
2 participants