Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tagging remote_functions: get_location_policy error #39

Open
swainjo opened this issue Jun 27, 2023 · 0 comments
Open

Tagging remote_functions: get_location_policy error #39

swainjo opened this issue Jun 27, 2023 · 0 comments
Assignees

Comments

@swainjo
Copy link
Collaborator

swainjo commented Jun 27, 2023

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?

@swainjo swainjo self-assigned this Jun 27, 2023
@swainjo swainjo added this to the Stable functional release. milestone Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant