Open davidedironza opened 3 months ago
From triage: Issue is referring to the buildServiceAccount
field which is present in the API reference of cloud function gen1: https://cloud.google.com/functions/docs/reference/rest/v1/projects.locations.functions
I can pick this one up, looking into this option for one of our gen2 functions. Please assign me.
I can pick this one up, looking into this option for one of our gen2 functions. Please assign me.
Apologies, I see I misunderstood the request. It's for gen1. Anyway, I can still do this, no problem 👍
Community Note
Description
Cloud Functions Gen1 already supports to use a custom service account to build the function but it is not implemented in terraform resource yet. In Gen2 resource cloudfunctions2_function it is already implemented https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloudfunctions2_function#service_account. Would be helpful if the custom service account could be passed in both generations
New or Affected Resource(s)
Potential Terraform Configuration
References
https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--build-service-account
b/354725684