Skip to content

Latest commit

 

History

History
75 lines (56 loc) · 2.69 KB

destination_pubsub.md

File metadata and controls

75 lines (56 loc) · 2.69 KB
page_title subcategory description
airbyte_destination_pubsub Resource - terraform-provider-airbyte
DestinationPubsub Resource

airbyte_destination_pubsub (Resource)

DestinationPubsub Resource

Example Usage

resource "airbyte_destination_pubsub" "my_destination_pubsub" {
  configuration = {
    batching_delay_threshold         = 10
    batching_element_count_threshold = 10
    batching_enabled                 = true
    batching_request_bytes_threshold = 5
    credentials_json                 = "...my_credentials_json..."
    ordering_enabled                 = false
    project_id                       = "...my_project_id..."
    topic_id                         = "...my_topic_id..."
  }
  definition_id = "df92d7e3-59fc-4984-811b-a60c95e88972"
  name          = "...my_name..."
  workspace_id  = "d57f528a-f49b-4b8c-91c8-620eafc0353a"
}

Schema

Required

  • configuration (Attributes) (see below for nested schema)
  • name (String) Name of the destination e.g. dev-mysql-instance.
  • workspace_id (String)

Optional

  • definition_id (String) The UUID of the connector definition. One of configuration.destinationType or definitionId must be provided. Requires replacement if changed.

Read-Only

  • created_at (Number)
  • destination_id (String)
  • destination_type (String)

Nested Schema for configuration

Required:

  • credentials_json (String, Sensitive) The contents of the JSON service account key. Check out the docs if you need help generating this key.
  • project_id (String) The GCP project ID for the project containing the target PubSub.
  • topic_id (String) The PubSub topic ID in the given GCP project ID.

Optional:

  • batching_delay_threshold (Number) Number of ms before the buffer is flushed. Default: 1
  • batching_element_count_threshold (Number) Number of messages before the buffer is flushed. Default: 1
  • batching_enabled (Boolean) If TRUE messages will be buffered instead of sending them one by one. Default: false
  • batching_request_bytes_threshold (Number) Number of bytes before the buffer is flushed. Default: 1
  • ordering_enabled (Boolean) If TRUE PubSub publisher will have message ordering enabled. Every message will have an ordering key of stream. Default: false

Import

Import is supported using the following syntax:

terraform import airbyte_destination_pubsub.my_airbyte_destination_pubsub ""