Closed onetwopunch closed 3 years ago
@tomscript FYI I'll take this one on if that's ok with you since the changes to filtering require the go113 runtime, which means file access like this will have to change anyway.
hey Ryan, ya thanks for raising this. IIRC i think was done back when you couldn't specify a service account for GCF. that would be awesome if you could take this. go for it! (and thank you!)
There is no need to download a service account key for Golang Cloud Functions to call GCP APIs especially since the service account is already attached to the functions. The problem is two-fold:
This can be fixed by simply:
google_service_account_key
resource in Terraformoption.WithCredentialsFile(authFile)
in the clients and subsequently the services.