Hello folks ! I have defined a PSC ``` qart-psc:...
# google-cloud
k
Hello folks ! I have defined a PSC
Copy code
qart-psc:
    type: gcp:networkconnectivity:ServiceConnectionPolicy
    properties:
      name: qart-psc
      location: us-central1
      serviceClass: gcp-sql
      network: ${gke-network.id}
      pscConfig:
        subnetworks:
          - ${gke-subnet.id}
        limit: 2
    options:
      dependsOn:
        - ${qart-router}
but I do not understand what the
serviceClass
should be. I have tried either random ids and
gcp-sql
, but I still no success...
m
k
I tried it, and it does not work 😕
Copy code
pulumi up -y
Previewing update (demo)

View in Browser (Ctrl+O): ...

     Type                                                Name            Plan
     pulumi:pulumi:Stack                                 qart-demo-demo
 +   ├─ gcp:networkconnectivity:ServiceConnectionPolicy  qart-psc        create
 +   └─ google-native:sqladmin/v1beta4:Instance          qart-postgres   create

Resources:
    + 2 to create
    5 unchanged

Updating (demo)

View in Browser (Ctrl+O): ...

     Type                                                Name            Status                  Info
     pulumi:pulumi:Stack                                 qart-demo-demo  **failed**              1 error
 +   └─ gcp:networkconnectivity:ServiceConnectionPolicy  qart-psc        **creating failed**     2 errors

Diagnostics:
  gcp:networkconnectivity:ServiceConnectionPolicy (qart-psc):
    error:   sdk-v2/provider2.go:572: sdk.helper_schema: Error creating ServiceConnectionPolicy: googleapi: Error 400: serviceClass gcp-cloud-sql does not exist: invalid argument: provider=google-beta@9.3.0
    error: 1 error occurred:
        * Error creating ServiceConnectionPolicy: googleapi: Error 400: serviceClass gcp-cloud-sql does not exist: invalid argument
But I can't find a full list anywhere
k
Uhm, Trying now ...
🤞 1
This worked, thanks 🙏 (so the rest api docs is the valid source of truth ...)
🎉 1