page_title | subcategory | description |
---|---|---|
airbyte_source_postgres Resource - terraform-provider-airbyte |
SourcePostgres Resource |
SourcePostgres Resource
resource "airbyte_source_postgres" "my_source_postgres" {
configuration = {
database = "...my_database..."
host = "...my_host..."
jdbc_url_params = "...my_jdbc_url_params..."
password = "...my_password..."
port = 5432
replication_method = {
# ...
}
schemas = [
]
ssl_mode = {
# ...
}
tunnel_method = {
password_authentication = {
tunnel_host = "...my_tunnel_host..."
tunnel_port = 22
tunnel_user = "...my_tunnel_user..."
tunnel_user_password = "...my_tunnel_user_password..."
}
}
username = "...my_username..."
}
definition_id = "be56435e-cbaf-420b-889d-1d220ff21125"
name = "...my_name..."
secret_id = "...my_secret_id..."
workspace_id = "d122fa45-e536-42be-a02d-5e851e4eb0a6"
}
configuration
(Attributes) (see below for nested schema)name
(String) Name of the source e.g. dev-mysql-instance.workspace_id
(String)
definition_id
(String) The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.secret_id
(String) Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
created_at
(Number)resource_allocation
(Attributes) actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. (see below for nested schema)source_id
(String)source_type
(String)
Required:
database
(String) Name of the database.host
(String) Hostname of the database.username
(String) Username to access the database.
Optional:
jdbc_url_params
(String) Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (Eg. key1=value1&key2=value2&key3=value3). For more information read about JDBC URL parameters.password
(String, Sensitive) Password associated with the username.port
(Number) Port of the database. Default: 5432replication_method
(Attributes) Configures how data is extracted from the database. (see below for nested schema)schemas
(List of String) The list of schemas (case sensitive) to sync from. Defaults to public.ssl_mode
(Attributes) SSL connection modes. Read more in the docs. (see below for nested schema)tunnel_method
(Attributes) Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. (see below for nested schema)
Optional:
detect_changes_with_xmin_system_column
(Attributes) Recommended - Incrementally reads new inserts and updates via Postgres Xmin system column. Suitable for databases that have low transaction pressure. (see below for nested schema)read_changes_using_write_ahead_log_cdc
(Attributes) Recommended - Incrementally reads new inserts, updates, and deletes using the Postgres write-ahead log (WAL). This needs to be configured on the source database itself. Recommended for tables of any size. (see below for nested schema)scan_changes_with_user_defined_cursor
(Attributes) Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at). (see below for nested schema)
Required:
publication
(String) A Postgres publication used for consuming changes. Read about publications and replication identities.replication_slot
(String) A plugin logical replication slot. Read about replication slots.
Optional:
additional_properties
(String) Parsed as JSON.heartbeat_action_query
(String) Specifies a query that the connector executes on the source database when the connector sends a heartbeat message. Please see the setup guide for how and when to configure this setting. Default: ""initial_load_timeout_hours
(Number) The amount of time an initial load is allowed to continue for before catching up on CDC logs. Default: 8initial_waiting_seconds
(Number) The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 1200 seconds. Valid range: 120 seconds to 2400 seconds. Read about initial waiting time. Default: 1200invalid_cdc_cursor_position_behavior
(String) Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. Default: "Fail sync"; must be one of ["Fail sync", "Re-sync data"]lsn_commit_behaviour
(String) Determines when Airbyte should flush the LSN of processed WAL logs in the source database.After loading Data in the destination
is default. IfWhile reading Data
is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync. Default: "After loading Data in the destination"; must be one of ["While reading Data", "After loading Data in the destination"]plugin
(String) A logical decoding plugin installed on the PostgreSQL server. Default: "pgoutput"; must be "pgoutput"queue_size
(Number) The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful. Default: 10000
Optional:
allow
(Attributes) Enables encryption only when required by the source database. (see below for nested schema)disable
(Attributes) Disables encryption of communication between Airbyte and source database. (see below for nested schema)prefer
(Attributes) Allows unencrypted connection only if the source database does not support encryption. (see below for nested schema)require
(Attributes) Always require encryption. If the source database server does not support encryption, connection will fail. (see below for nested schema)verify_ca
(Attributes) Always require encryption and verifies that the source database server has a valid SSL certificate. (see below for nested schema)verify_full
(Attributes) This is the most secure mode. Always require encryption and verifies the identity of the source database server. (see below for nested schema)
Optional:
additional_properties
(String) Parsed as JSON.
Optional:
additional_properties
(String) Parsed as JSON.
Optional:
additional_properties
(String) Parsed as JSON.
Optional:
additional_properties
(String) Parsed as JSON.
Required:
ca_certificate
(String, Sensitive) CA certificate
Optional:
additional_properties
(String) Parsed as JSON.client_certificate
(String, Sensitive) Client certificateclient_key
(String, Sensitive) Client keyclient_key_password
(String, Sensitive) Password for keystorage. If you do not add it - the password will be generated automatically.
Required:
ca_certificate
(String, Sensitive) CA certificate
Optional:
additional_properties
(String) Parsed as JSON.client_certificate
(String, Sensitive) Client certificateclient_key
(String, Sensitive) Client keyclient_key_password
(String, Sensitive) Password for keystorage. If you do not add it - the password will be generated automatically.
Optional:
no_tunnel
(Attributes) (see below for nested schema)password_authentication
(Attributes) (see below for nested schema)ssh_key_authentication
(Attributes) (see below for nested schema)
Required:
tunnel_host
(String) Hostname of the jump server host that allows inbound ssh tunnel.tunnel_user
(String) OS-level username for logging into the jump server hosttunnel_user_password
(String, Sensitive) OS-level password for logging into the jump server host
Optional:
tunnel_port
(Number) Port on the proxy/jump server that accepts inbound ssh connections. Default: 22
Required:
ssh_key
(String, Sensitive) OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa )tunnel_host
(String) Hostname of the jump server host that allows inbound ssh tunnel.tunnel_user
(String) OS-level username for logging into the jump server host.
Optional:
tunnel_port
(Number) Port on the proxy/jump server that accepts inbound ssh connections. Default: 22
Read-Only:
default
(Attributes) optional resource requirements to run workers (blank for unbounded allocations) (see below for nested schema)job_specific
(Attributes List) (see below for nested schema)
Read-Only:
cpu_limit
(String)cpu_request
(String)ephemeral_storage_limit
(String)ephemeral_storage_request
(String)memory_limit
(String)memory_request
(String)
Read-Only:
job_type
(String) enum that describes the different types of jobs that the platform runs. must be one of ["get_spec", "check_connection", "discover_schema", "sync", "reset_connection", "connection_updater", "replicate"]resource_requirements
(Attributes) optional resource requirements to run workers (blank for unbounded allocations) (see below for nested schema)
Read-Only:
cpu_limit
(String)cpu_request
(String)ephemeral_storage_limit
(String)ephemeral_storage_request
(String)memory_limit
(String)memory_request
(String)
Import is supported using the following syntax:
terraform import airbyte_source_postgres.my_airbyte_source_postgres ""