great-sunset-355
01/08/2025, 2:38 PMnew 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?
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?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by