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: metadata-credentials #1

Merged
merged 6 commits into from
Sep 17, 2014
Merged

Conversation

adamkittelson
Copy link
Owner

try to load credentials from IAM if they haven't been otherwise provided

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.99%) when pulling fd7c479 on feature/metadata-credentials into 867819f on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.99%) when pulling 85f9328 on feature/metadata-credentials into 867819f on master.


def load_credentials_from_metadata do
try do
%HTTPoison.Response{:body => role_name} = HTTPoison.get("http://169.254.169.254/latest/meta-data/iam/security-credentials/", [], [timeout: 500])

Choose a reason for hiding this comment

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

What happens in Simplex clients if this call fails for any reason? Is there a notion of an exception (or something similar) in Elixir that we can propagate back, or will things just silently fail?

@adamkittelson adamkittelson merged commit 85f9328 into master Sep 17, 2014
@adamkittelson adamkittelson deleted the feature/metadata-credentials branch September 17, 2014 14:59
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.

None yet

3 participants