k1LoW / awsecrets

AWS credentials loader
MIT License
17 stars 9 forks source link

Net::OpenTimeout if no aws region set and not on ec2 instance #21

Open pmcfadden opened 5 years ago

pmcfadden commented 5 years ago

on Awsecrets.load if you fail to have a region set (we're running this in a circleci build). It assumes you're on an ec2 instance and looks for metadata to get the current region. If you aren't, it fails with a Net::OpenTimeout

This is a feature request to have a better error message.

glasswalk3r commented 4 years ago

Hi @pmcfadden ,

29 supposedly fix the issue with the lack of region configuration (with better error message).

I'm preparing a PR to provide an error message for the Net::OpenTimeout.

glasswalk3r commented 4 years ago

Done. See #30 .

glasswalk3r commented 4 years ago

This issue should be fixed by #30 , that was merged recently. @pmcfadden could you please check if it is working now?

pmcfadden commented 4 years ago

thanks!