Issue creating airbyte Workspace_id in stage environment via terraform

Summary

Error code 422 - Workspace missing org ID when creating airbyte Workspace_id in stage environment via terraform


Question

Hello brainy minds!!
I am trying to run the airbyte job in test, stage and prod environment via terraform. In that I am facing an issue, that the airbyte Workspace_id is not getting created in the stage environment.
error looks like this:

╷
│ Error: unexpected response from API. Got an unexpected response code 422
│ 
│   with module.airbyte.airbyte_workspace.ea-airbyte,
│   on modules/airbyte/main.tf line 23, in resource "airbyte_workspace" "ea-airbyte":
│   23: resource "airbyte_workspace" "ea-airbyte" {
│ 
│ **Request**:
│ POST /airbyte/v1/workspaces HTTP/1.1
│ Host: <http://api.private.stage.zeronorth.app|api.private.stage.zeronorth.app>
│ Accept: application/json
│ Authorization: Basic Og==
│ Content-Type: application/json
│ User-Agent: speakeasy-sdk/go 0.4.1 2.262.2 1.0.0 airbyte
│ 
│ {"name":"emission-analytics | <https://github.com/0north/ea-airbyte>"}
│ **Response**:
│ HTTP/2.0 422 Unprocessable Entity
│ Content-Length: 159
│ Content-Type: application/problem+json
│ Date: Wed, 22 May 2024 12:52:56 GMT
│ Server: istio-envoy
│ X-Envoy-Upstream-Service-Time: 21
│ 
│ {"detail":"Workspace missing org
│ ID.","type":"<https://reference.airbyte.com/reference/errors#unprocessable-entity>","title":"unprocessable-entity","status":422}
╵
Error: Terraform exited with code 1.
Error: Final attempt failed. Child_process exited with error code 1```
Can anyone please suggest me a solution, thanks in advance :))

<br>

---

This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C021JANJ6TY/p1716444359594119) if you want 
to access the original thread.

[Join the conversation on Slack](https://slack.airbyte.com)

<sub>
["airbyte", "workspace-id", "stage-environment", "terraform", "error-422"]
</sub>