uber/athenadriver

Allow connector to create an AWS session with default credentials

dfreiman-hbo opened this issue · 3 comments

In some environments it may be preferable for the AWS sdk to determine the credentials instead of having them passed in.

Proposal:
If the AWS_SDK_LOAD_CONFIG environment variable is unset and the access id is not passed, the session should be created with just the region. Credentials will be read by the AWS sdk.

Details:

  1. Add a new condition to connector.go Connect() if c.config.GetAccessID() is empty.
  2. Update Readme to include enhancement
  3. I might need guidance on how to include new tests. The current tests are missing credentials.

I am willing to create a pull request for this if approved (and when my employer's legal dept approves).

@dfreiman-hbo Please feel free to create a PR. I guess you need to write some mock code for credential authentication.

Should I have bumped the version as done in 137ed81 ?

Thanks @dfreiman-hbo I will do it over the weekend.