Skip to content

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.

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 andrewsharon force-pushed the 198-EnableSharedConfigFile branch from e2403d6 to 2389db6 Compare February 6, 2020 18:46
@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