provider/aws: Retry resourceAwsLaunchConfigurationCreate if instance profile hasn't propagated (#8813)
This commit is contained in:
parent
dfb85fb0d7
commit
459e618c44
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue