Currently, the AWS STS code will fail without retrying on connection failures. Now connection failures can be difficult to differentiate from misconfiguration in some cases but we should add a configurable retry count. This is in addition to SERVER-62053 which only retries if a connection can be made to the server and the server returns HTTP 500.