Vertex AI index endpoint Terraform: network takes a project number, not a project ID
Shows how to fix vertex AI index endpoint Terraform: network takes a project number, not a project ID. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
[microsoftexpert/terraform-google-vertex-ai-index-endpoint]: pass the network as projects/{project number}/global/networks/{name}: wiring a VPC module's id or selflink (the project ID form) fails apply. network and privateserviceconnectconfig are mutually exclusive, set at most one.
Steps
- [microsoftexpert/terraform-google-vertex-ai-index-endpoint]: pass the network as projects/{project number}/global/networks/{name}: wiring a VPC module's id or selflink (the project ID form) fails apply. network and privateserviceconnectconfig are mutually exclusive, set at most one. Index Endpoint creation fails when network is set unless Private Services Access is established for the target network, so confirm the service networking connection completed and add an explicit depends_on. IAM grants can take up to 60 seconds to propagate: re-run apply before treating a permission-denied as a code defect.
When to use
Use this skill when you run into "Vertex AI index endpoint Terraform: network takes a project number, not a project ID".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.