Skip to content

Commit

Permalink
Revert "Retry UpdateProject similar to CreateProject since IAM is eve…
Browse files Browse the repository at this point in the history
…ntually consistent"

This reverts commit a60862f.
  • Loading branch information
errriclee committed Apr 17, 2018
1 parent 914bacf commit 0a75b77
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions aws/resource_aws_codebuild_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,22 +557,7 @@ func resourceAwsCodeBuildProjectUpdate(d *schema.ResourceData, meta interface{})
// But its a slice of pointers so if not set for every update, they get removed.
params.Tags = tagsFromMapCodeBuild(d.Get("tags").(map[string]interface{}))

err := resource.Retry(5*time.Minute, func() *resource.RetryError {
var err error

_, err = conn.UpdateProject(params)
if err != nil {
// Work around eventual consistency of IAM
if isAWSErr(err, "InvalidInputException", "CodeBuild is not authorized to perform") {
return resource.RetryableError(err)
}

return resource.NonRetryableError(err)
}

return nil

})
_, err := conn.UpdateProject(params)

if err != nil {
return fmt.Errorf(
Expand Down

0 comments on commit 0a75b77

Please sign in to comment.