-
Notifications
You must be signed in to change notification settings - Fork 9
Description
error when calling get_location_policy remote function created by:
location_policy/create_remote_function.sh
Test SQL
select cdmc-gov-388611.remote_functions.get_location_policy('cdmc-confdata-388611');
Error
Received response code 400 from endpoint https://us-central1-cdmc-gov-388611.cloudfunctions.net/get_location_policy with response {"errorMessage": "403 Organization Policy API has not been used in project 440292903921 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/orgpolicy.googleapis.com/overview?project=440292903921 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry. [links {\n description: "Google developers console API activation"\n url: "https://console.developers.google.com/apis/api/orgpolicy.googleapis.com/overview?project=440292903921"\n}\n, reason: "SERVICE_DISABLED"\ndomain: "googleapis.com"\nmetadata {\n key: "service"\n value: "orgpolicy.googleapis.com"\n}\nmetadata {\n key: "consumer"\n value: "projects/440292903921"\n}\n]"}.
Diagnosis:
Organization Policy API - having issues enabling this API, can't see it in console and
gcloud services enable organization-policy.googleapis.com
command not working under my credentials.
Can this be fixed in Terraform or is there an issue with policies in Argolis?