Hi I have a problem enabling organization policy w...
# google-cloud
g
Hi I have a problem enabling organization policy with pulumi
Copy code
new gcp.orgpolicy.Policy(`${name}-skipDefaultNetworkPolicy`, {
      name: `${gcpOrgRootIdParent}/policies/compute.skipDefaultNetworkCreation`,
      parent: gcpOrgRootIdParent, 
      spec: {
        inheritFromParent: false,
        rules: [
          {
            enforce: "TRUE",
          },
        ],
      },
    },{provider: orgProvider});
But the code above results with the following error, what am I missing?
Copy code
error:   sdk-v2/provider2.go:520: sdk.helper_schema: Error creating Policy: googleapi: Error 403: Your application is authenticating by using local Application Default Credentials. The orgpolicy.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/REDACTED_PROJECT_NUMBER",
          "service": "orgpolicy.googleapis.com"
        },
        "reason": "SERVICE_DISABLED"
      }
    ]: provider=google-beta@8.10.0
    error: 1 error occurred:
        * Error creating Policy: googleapi: Error 403: Your application is authenticating by using local Application Default Credentials. The orgpolicy.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/REDACTED_PROJECT_NUMBER",
          "service": "orgpolicy.googleapis.com"
        },
        "reason": "SERVICE_DISABLED"
      }
    ]

  pulumi:pulumi:Stack (org-setup-bcg-orgroot):
    error: update failed
it seems to be related to this problem https://github.com/hashicorp/terraform-provider-google/issues/17998 and this https://github.com/hashicorp/terraform-provider-google/issues/18125 did anyone figure it out?