Skip to content

Commit

Permalink
provider/aws: Retry resourceAwsLaunchConfigurationCreate if instance …
Browse files Browse the repository at this point in the history
…profile hasn't propagated (#8813)
  • Loading branch information
svenwltr authored and catsby committed Sep 13, 2016
1 parent dfb85fb commit 459e618
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builtin/providers/aws/resource_aws_launch_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 459e618

Please sign in to comment.