Improve errors for aws login with an unbound ARN (#10036)
Improve errors for aws login with an unbound ARN (#10036)

* Improve errors for aws login with an unbound ARN

* Factor hasWildcardBind into its own function

Co-authored-by: Calvin Leung Huang <1ed14a93637335fd4b0fc4d13d1117ce491fda63@gmail.com>
hartsock/vault,hashicorp/vault,rnaveiras/vault,hartsock/vault,hartsock/vault,hashicorp/vault,hashicorp/vault,rnaveiras/vault,rnaveiras/vault,hashicorp/vault,rnaveiras/vault,hashicorp/vault,hashicorp/vault,rnaveiras/vault,hartsock/vault,hartsock/vault