Incorrect Service Networking config for instance: xxxx:SERVICE_NETWORKING_NOT_ENABLED
Shows how to fix incorrect Service Networking config for instance: xxxx:SERVICE_NETWORKING_NOT_ENABLED. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
If you see the following error: Error: Error, failed to create instance xxxx: googleapi: Error 400: Invalid request: Incorrect Service Networking config for instance: xxxx:xxxxx:SERVICENETWORKINGNOTENABLED., invalid Enable the Service Networking API: `` gcloud services enable servicenetworking.googleapis.com --project=[PSM\PROJECT\_NUMBER] ` Getting Started with the Service Networking API Context: Stack Overflow #66536427 (accepted answer, 37 votes): I'm trying to replicate a SQL instance in GCP via terraform.
Steps
- If you see the following error: Error: Error, failed to create instance xxxx: googleapi: Error 400: Invalid request: Incorrect Service Networking config for instance: xxxx:xxxxx:SERVICENETWORKINGNOT_ENABLED., invalid Enable the Service Networking API:
2. Getting Started with the Service Networking API
## When to use
You are seeing this: The active instance has a public IP, however subnets from a secondary project are shared with the project hosing the SQL instance, and the SQL instance is associated with the secondary project's network. Use this skill when you run into "Incorrect Service Networking config for instance: xxxx:SERVICE_NETWORKING_NOT_ENABLED".
## 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.
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.