This repository was archived by the owner on Oct 10, 2020. It is now read-only.
This is a simple fix meant at properly supporting excellent tools such as aws-vault which mock a local metadata server to make assuming roles and satisfying MFA challenges dead simple. Really great for local development.
The instance metadata provider is now placed ahead of the default provider in the chain because if you are developing locally, the default provider will try to use your $HOME/.aws/credentials ahead of trying a metadata endpoint -- and this defeats aws-vault.