Skip to content

Commit

Permalink
Merge pull request #3050 from terraform-providers/b-emr-cluster-retry…
Browse files Browse the repository at this point in the history
…-on-ade

resource/aws_emr_cluster: Retry creation on AccessDeniedException
  • Loading branch information
radeksimko authored Jan 18, 2018
2 parents d522fd3 + f96a74e commit 25830c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aws/resource_aws_emr_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,9 @@ func resourceAwsEMRClusterCreate(d *schema.ResourceData, meta interface{}) error
if isAWSErr(err, "ValidationException", "Invalid InstanceProfile:") {
return resource.RetryableError(err)
}
if isAWSErr(err, "AccessDeniedException", "Failed to authorize instance profile") {
return resource.RetryableError(err)
}
return resource.NonRetryableError(err)
}
return nil
Expand Down

0 comments on commit 25830c0

Please sign in to comment.