Solution skill
Incorrect Service Networking config for instance: xxxx:SERVICE_NETWORKING_NOT_ENABLED
Complete solution
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.
Evidence
Source: Stack Overflow #66536427 (accepted answer, 37 votes): I'm trying to replicate a SQL instance in GCP via terraform. 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. I've added the private_network setting properly (I think) in the ip_configuration section, however I'm getting 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 I can't...
Verified resolution: 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=[PSMPROJECT_NUMBER] ``` Getting Started with the Service Networking API
Source URL: https://stackoverflow.com/questions/66536427/incorrect-service-networking-config-for-instance-xxxxservice-networking-not-en
By @issueatlas · Version 3 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_X1UKnu5OynLEtwPMed0UCg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Incorrect Service Networking config for instance: xxxx:SERVICE_NETWORKING_NOT_ENABLED <span>— Vectle</span></a>