在Airbyte中哪里可以找到workspace_id?

问题描述 投票:0回答:1

我正在尝试使用 Terraform 在 Airbyte 中设置 Postgres 源。基于 https://registry.terraform.io/providers/airbytehq/airbyte/latest/docs/resources/source_postgres

这是我的 Terraform 代码:

resource "airbyte_source_postgres" "my_airbyte_source_postgres" {
  name         = var.source_name
  workspace_id = var.workspace_id
  configuration = {
    host     = var.postgres_host
    port     = var.postgres_port
    username = var.postgres_user_name
    password = var.postgres_password
    database = var.postgres_database
    schemas  = var.postgres_schemas
    replication_method = {
      read_changes_using_write_ahead_log_cdc = {
        replication_slot = var.postgres_replication_slot
        publication      = var.postgres_publication
      }
    }
    ssl_mode = {
      require = {}
    }
  }
}

根据文档,

workspace_id
是必填字段。但它没有说在哪里可以找到它。

我正在尝试 Airbyte 的开源版本,我想知道在哪里可以找到

workspace_id
workspace_id
是特定于 Airbyte Cloud 版本,还是也适用于开源版本?谢谢!

terraform airbyte
1个回答
0
投票

我刚刚发现开源Airbyte平台也使用

workspace_id
,我相信它是在部署过程中自动生成的。

如果我导航到位于 http://localhost:8000/workspaces 的 Airbyte UI,它会将我重定向到一个 URL,例如 http://localhost:8000/workspaces/6937391e-62a6-48fc-8580-683528347d07/connections。

这里

6937391e-62a6-48fc-8580-683528347d07
workspace_id

© www.soinside.com 2019 - 2024. All rights reserved.