-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Cloud build trigger include the option of setting user specific service account #9296
Comments
@vongohren can't you provide the account in the cloudbuild.yaml?
and then resource "google_cloudbuild_trigger" "filename-trigger" {
trigger_template {
branch_name = "master"
repo_name = "my-repo"
}
substitutions = {
_FOO = "bar"
_BAZ = "qux"
}
filename = "cloudbuild.yaml". <<<< here
} |
@edwardmedia I can, but we are building up the steps inline because that was what we saw as the easiest way of doing inline substitutions of other terraform resources. So I have come to enjoy building it that way. But I guess one can use the substitions and fill it inn with all the variables one is using and make a cloudbuild.yaml? It just seems to me as an extra step. But why not have this attribute available I Wonder? Currently I gave my build service account access to the resource, but I would try to avoid this preferebly |
@vongohren the provider is more aligned with the api schema. That could be broken unless there is no workaround, or requested by majority users. I don't think adding the service account here is a case. Closing this for now |
Is there something I can read or look at to understand how a simple attribute like this, which is in their API, is not something that fits in for the terraform provider? I can add steps in terraform, then why not service accounts? |
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
There is a way to set service accounts per build so that you dont have to affect the originating service account: https://cloud.google.com/build/docs/securing-builds/configure-user-specified-service-accounts#json
But I cannot seem to find it in: https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloudbuild_trigger
New or Affected Resource(s)
Potential Terraform Configuration
Unsure how to add this, but it is a simple attribute in my mind under the trigger itself.
References
The text was updated successfully, but these errors were encountered: