-
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
codebuild: Fix service_role Required #4826
Conversation
@koooge thanks for submitting this! Admittedly, I ran into this behavior as well when re-vamping the acceptance testing for the resource recently and was confused why it was not listed as required in the CodeBuild API CreateProjectInput. I'm wondering if there is currently a valid situation when the IAM role would not be required or that maybe in the future they plan on supporting an IAM service-linked role -- let me open an AWS Support case to find out some more information. |
I'm still waiting for an AWS Support response about this. |
This change is looking promising, but let's wait for the service team to respond:
|
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 finally received the following AWS Support response:
"Service Role is required when creating a CodeBuild Project. If you create through the console, the console may automatically create one Service Role for you just to enhance customer experience. This seems to be a documentation issue, because looking at the service role play in CodeBuild, it's required for at least sending the logs to CloudWatch Logs. The docs team has been notified of the change. In the future, the customer can always give feedback to the docs team (through the Give Feedback link). This would be helpful in getting a faster response.
Thanks for pointing out the discrepancy and for reaching out."
Thus, to reiterate, the Service Role seems to be a required property as you rightly pointed out. The documentation will also be reflected to point to the same.
Given that, let's get this merged. Thanks @koooge! 🚀
This has been released in version 1.27.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! |
Changes proposed in this pull request:
codebuild) service_role seems to be required.
Output from acceptance testing:
sorry I did not run test. 🙇