-
Notifications
You must be signed in to change notification settings - Fork 264
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
Support IAM instance profile credentials #42
Comments
A corollary to this would be to also optionally support a third environment variable for the session token provided by temporary credentials. |
@jefe78 why the thumbs-down? |
We intentionally disabled this way to log into AWS, as it was slowing significantly the CLI, when no credentials were provided. It was freezing several minutes (trying to connect to 169.254.*) before throwing an error. |
Weird, the standard AWS SDKs don't slow down at all; not sure what they do, but |
It looks like they do this: cfg.HTTPClient = &http.Client{
// use a shorter timeout than default because the metadata
// service is local if it is running, and to fail faster
// if not running on an ec2 instance.
Timeout: 5 * time.Second,
} |
This should be fixed in the last version of |
I'm trying to use
awless
from a machine that has valid (temporary) credentials on the standard 169.254.169.254 endpoint and it complains:My expectation from all other AWS tools and SDKs is that it would respect explicitly provided credentials if provided, but would fall back on the instance metadata credentials if those weren't provided.
The text was updated successfully, but these errors were encountered: