[ML] Increase the wait time for AWS credentials to propagate
This was timing out a lot yesterday from the London office Original commit: elastic/x-pack-elasticsearch@a0989c2a0f
This commit is contained in:
parent
b03147bea9
commit
99def2bd33
|
@ -101,8 +101,8 @@ Closure setAwsCreds = {
|
||||||
LogicalResponse secret = vault.logical().read("aws-dev/creds/prelertartifacts")
|
LogicalResponse secret = vault.logical().read("aws-dev/creds/prelertartifacts")
|
||||||
project.ext.mlAwsAccessKey = secret.data.get('access_key')
|
project.ext.mlAwsAccessKey = secret.data.get('access_key')
|
||||||
project.ext.mlAwsSecretKey = secret.data.get('secret_key')
|
project.ext.mlAwsSecretKey = secret.data.get('secret_key')
|
||||||
// Retrying 10 times to give AWS a chance to propagate the credentials
|
// Retry for up to 1 minute to give AWS a chance to propagate the credentials
|
||||||
int retries = 60
|
int retries = 120
|
||||||
while (retries > 0) {
|
while (retries > 0) {
|
||||||
AWSCredentials creds = new BasicAWSCredentials(project.mlAwsAccessKey, project.mlAwsSecretKey)
|
AWSCredentials creds = new BasicAWSCredentials(project.mlAwsAccessKey, project.mlAwsSecretKey)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue