[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:
David Roberts 2017-04-20 09:54:00 +01:00
parent b03147bea9
commit 99def2bd33
1 changed files with 2 additions and 2 deletions

View File

@ -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)