-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support additional CodeBuild settings, retry for IAM errors #3929
Conversation
Supporting Git clone depth already has a pending PR: #3467 Can you please work with the original author or implement on top of their commits? The main issue with adding these new attributes inside |
Looking forward to this ! |
They also added |
I don't plan on supporting the webhook branch filter in this PR, but it seems separate enough it could be in a separate PR without stepping on toes. |
@bflad is this good to go? |
@@ -527,7 +557,22 @@ 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 := conn.UpdateProject(params) | |||
err := resource.Retry(5*time.Minute, func() *resource.RetryError { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We tend to only retry for 1 minute unless there is heavy evidence it requires longer. Can you please also move this to its own PR so it can get merged separately of the other changes? Reference: #4233
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now #4238
…ntually consistent" This reverts commit a60862f.
…M is eventually consistent"" This reverts commit 0a75b77, now that f-codebuild-updateproj-retry was merged.
After looking through the various duplicate pull requests, I'm going to try to get the commits merged in the following order here (resolving the merge conflicts and test changes along the way, which could be tedious): #2811 -> #4021 -> #3929. 🤞 In the end the following new arguments will be supported:
|
After merging together the above pull requests and refactoring the test suite, we should be good to go:
This will release with v1.21.0 of the AWS provider, likely middle of next week. |
This has been released in version 1.21.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Support CodeBuild environment variable type, git clone depth, insecure SSL options
Retry UpdateProject similar to CreateProject