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

Feature/config refactor #14

Merged
merged 4 commits into from
Oct 25, 2017
Merged

Feature/config refactor #14

merged 4 commits into from
Oct 25, 2017

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Oct 25, 2017

Update the v2 SDK removing the Session and ConfigProvider types. In their place a new package external was created to provide external configuration loading. Such as Environment and Shared config.

This change also flattens the SDK's request, client, metadata, and credentials packages into `aws.

Updates the SDK adding an external package. This package is resposible
for loading external configuration data such as environment and shared
config files. In addition this would be the customers initial interface
into the SDK loading the SDKs config.

Removes session package from the SDK. This update removes the Session
type and all of its loading logic. This is all replaced with the
external package. The aws.Config type is updated to satisfy the
ConfigProvider interface.

Flattens the client, metadata, request, and credentials packages into
aws.
Renames Credentials:

* Valid -> HasKeys
* ProviderName -> Source
* StaticProvider -> StaticCredentialsProvider
* Add CA Bundle injection
* Add EC2 Metadata region provider util
* Add shared config loading tests.
Corrects the external config loading of credentials so that the EC2 role provider is set first as a fallback. Any other credentials set will override it.
Removing the ConfigProvider interface replacing all usage with `aws.Config`
@jasdel jasdel force-pushed the feature/ConfigRefactor branch from bbc3a29 to de990c5 Compare October 25, 2017 17:52
@jasdel jasdel merged commit 582ad60 into master Oct 25, 2017
@jasdel jasdel deleted the feature/ConfigRefactor branch October 25, 2017 18:25
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.

1 participant