I believe this is a permissions issue. I am trying to run terraform in Google Cloud Build, which uses Application Default Credentials under the hood in its builder image.
The credentials are the Cloud Build service account - simple enough.
In my terraform code, I have some data queries that load the current organisation and billing account data - and these are failing when I try to apply on Cloud Build.
I've given the service account Organization Admin, Project Owner and Project Billing Manager roles, and nothing seems to change it.
I thought maybe I could create an organization iam membership for the service account with admin role for it - but when I try to run it (locally, in my own gcloud terminal) I get 403 - The caller does not have permission, forbidden.
What am I missing here, is this a limitation of service accounts?