Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Add support for credentials file (WIP) #337

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

radeksimko
Copy link

This is adding support for new config option credential_file as discussed earlier in #151 and #15 (comment)

I tried to implement it exactly the way @mitchellh described in #15 (comment) and it basically works except that I probably don't fully understand the lifecycle - when finalize! & validate gets called, which is why the validation is broken and always assumes conflict.

Maybe I can move the whole block in finalize somewhere else, so it gets executed after validate?

Also there's one more config option that can be added, profile defaulting to ENV['AWS_PROFILE']:
https://github.com/aws/aws-sdk-ruby/blob/master/spec/aws/core/credential_providers_spec.rb#L395

Here's an example of AWS_PROFILE variable name use (just FYI, that I'm not reinventing the wheel here):
https://github.com/aws/aws-sdk-core-ruby/blob/90f34bcb002ef8be418502164063fe297727f9d5/aws-sdk-core/lib/aws-sdk-core/shared_credentials.rb#L13-14

Here's an example of how the generated ini file may look like:
https://github.com/aws/aws-cli/blob/master/README.rst#getting-started

@kenorb
Copy link

kenorb commented Apr 15, 2016

This needs to be rebased if it's still relevant.

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.

None yet

2 participants