I'm trying to run the command: terraform -chdir=terraform apply -auto-approve and the following error is occurring:
│ Error: Error creating InspectTemplate: googleapi: Error 403: Your application is authenticating by using local Application Default Credentials. The dlp.googleapis.com API requires a quota project, which is not set by default. To learn how to set your quota project, see https://cloud.google.com/docs/authentication/adc-troubleshooting/user-creds .
│ Details:
│ [
│ {
│ "@type": "type.googleapis.com/google.rpc.ErrorInfo",
│ "domain": "googleapis.com",
│ "metadata": {
│ "consumer": "projects/764086051850",
│ "service": "dlp.googleapis.com"
│ },
│ "reason": "SERVICE_DISABLED"
│ }
│ ]
│
│ with module.pdf_redactor.google_data_loss_prevention_inspect_template.dlp_pdf_template,
│ on pdf-redactor/dlp.tf line 15, in resource "google_data_loss_prevention_inspect_template" "dlp_pdf_template":
│ 15: resource "google_data_loss_prevention_inspect_template" "dlp_pdf_template" {
I then followed the suggested help doc https://cloud.google.com/docs/authentication/adc-troubleshooting/user-creds where it suggests to run the command gcloud auth application-default set-quota-project YOUR_PROJECT
So I ran that command with my project name.
$ gcloud auth application-default set-quota-project aeropsychiatry
Credentials saved to file: [/Users/nateaune/.config/gcloud/application_default_credentials.json]
These credentials will be used by any library that requests Application Default Credentials (ADC).
Quota project "aeropsychiatry" was added to ADC which can be used by Google client libraries for billing and quota. Note that some services may still bill the project owning the resource.
But I get the same error as before. Any ideas what might be going wrong?
I'm trying to run the command:
terraform -chdir=terraform apply -auto-approveand the following error is occurring:I then followed the suggested help doc https://cloud.google.com/docs/authentication/adc-troubleshooting/user-creds where it suggests to run the command
gcloud auth application-default set-quota-project YOUR_PROJECTSo I ran that command with my project name.
But I get the same error as before. Any ideas what might be going wrong?