Closed dmyerscough closed 4 years ago
@dmyerscough thanks for the contribution.
Unfortunately it came just at the time i needed to change the code a bit to get support for Workload Identity and so your code does not cleanly merge anymore ... and will require some changes
see https://github.com/mintel/gcp-quota-exporter/pull/6
This will shortly go in release 0.3.0
In particular now
If you still need this option of getting it from the credentials.json file maybe you can update your code and check if the env var is set and then extract the project_id from the location of the file ?
thanks!
I just updated the PR #7
The service account key that is generated contains the GCP Project ID.
With this patch, you can just provide the service account file, but still, override the project ID:-