-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
google_cloudbuild_trigger support for service account #10053
google_cloudbuild_trigger support for service account #10053
Comments
Looks like adding support for |
I was puzzled by this... the field is in the v1 API, but on the GCP Console it is marked as "preview". |
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. |
Community Note
Description
I would like to create a build trigger in GCP using Terraform that uses a specific service account.
My use case is that I need two different types of triggers:
Setting the service account in
cloudbuild.yaml
is ignored when building in Cloud Build (and for good reasons, otherwise any team could add some tf code and a service account with elevated privileges), so that is not an option.The documentation has
serviceAccount
as a first class citizen (although in beta). https://cloud.google.com/build/docs/api/reference/rest/v1/projects.triggersService account in the yaml is ignored by Cloud Build according to my findings and this documentation: https://cloud.google.com/build/docs/securing-builds/configure-user-specified-service-accounts#running_builds_using_build_triggers
New or Affected Resource(s)
google_cloudbuild_trigger
Potential Terraform Configuration
References
I read the issue here:
#9296
and am unsure how to proceed.
The text was updated successfully, but these errors were encountered: