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

Provide automatic fallbacks when creating auth object for AWS #42

Open
linusthe3rd opened this issue Jul 10, 2015 · 1 comment
Open

Comments

@linusthe3rd
Copy link
Contributor

Looking at auth.go, the three methods of retrieving the access keys to make API calls to AWS are available:

  • the consumer provides the access keys
  • get the access keys from environment variables
  • get the access keys from the local metadata server

The problem with this is that, as a consumer, I need to add logic to handle falling back to one of the above methods if a previous one fails (provided by consumer -> checked env -> check metadata server). Comparing this code to goamz's GetAuth method, goamz provides a nice wrapper method to encapsulate this fallback logic so that the code will seamlessly work in all three scenarios.

It would be nice to have a method like this for go-kinesis.

@le0pard
Copy link
Contributor

le0pard commented Jul 11, 2015

Right now I don't have time to add this, but ready accept PR for this improvement.

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

No branches or pull requests

2 participants