NewUsingIAM() blocks forever outside of AWS
Closed this issue · 0 comments
knadh commented
Accidentally initialized NewUsingIAM()
outside of the AWS/IAM environment and the request blocked forever. Given that the instance metadata is generated from AWS "magic" URLs that are instant, I guess hardcoding a short $N second timeout here should be fine, given that:
NewUsingIAM()
is currently unable to take any additional config.- Calling this outside of the AWS environment should return an error.
Line 151 in ad0419e