provider/aws: Retry resourceAwsLaunchConfigurationCreate if instance profile hasn't propagated (#8813)

This commit is contained in:
Sven Walter 2016-09-13 20:07:43 +02:00 committed by Clint
parent dfb85fb0d7
commit 459e618c44
1 changed files with 3 additions and 0 deletions

View File

@ -481,6 +481,9 @@ func resourceAwsLaunchConfigurationCreate(d *schema.ResourceData, meta interface
if strings.Contains(awsErr.Message(), "Invalid IamInstanceProfile") {
return resource.RetryableError(err)
}
if strings.Contains(awsErr.Message(), "You are not authorized to perform this operation") {
return resource.RetryableError(err)
}
}
return resource.NonRetryableError(err)
}