oci_mysql_channel

This resource provides the Channel resource in Oracle Cloud Infrastructure MySQL Database service.

Creates a Channel to establish replication from a source to a target.

Example Usage

resource "oci_mysql_channel" "test_channel" {
	#Required
	source {
		#Required
		hostname = var.channel_source_hostname
		password = var.channel_source_password
		source_type = var.channel_source_source_type
		ssl_mode = var.channel_source_ssl_mode
		username = var.channel_source_username

		#Optional
		anonymous_transactions_handling {
			#Required
			policy = var.channel_source_anonymous_transactions_handling_policy

			#Optional
			last_configured_log_filename = var.channel_source_anonymous_transactions_handling_last_configured_log_filename
			last_configured_log_offset = var.channel_source_anonymous_transactions_handling_last_configured_log_offset
			uuid = var.channel_source_anonymous_transactions_handling_uuid
		}
		port = var.channel_source_port
		ssl_ca_certificate {
			#Required
			certificate_type = var.channel_source_ssl_ca_certificate_certificate_type
			contents = var.channel_source_ssl_ca_certificate_contents
		}
	}
	target {
		#Required
		db_system_id = oci_database_db_system.test_db_system.id
		target_type = var.channel_target_target_type

		#Optional
		applier_username = var.channel_target_applier_username
		channel_name = oci_mysql_channel.test_channel.name
		delay_in_seconds = var.channel_target_delay_in_seconds
		filters {
			#Required
			type = var.channel_target_filters_type
			value = var.channel_target_filters_value
		}
		tables_without_primary_key_handling = var.channel_target_tables_without_primary_key_handling
	}

	#Optional
	compartment_id = var.compartment_id
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.channel_description
	display_name = var.channel_display_name
	freeform_tags = {"bar-key"= "value"}
	is_enabled = var.channel_is_enabled
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 30 minutes), when creating the Channel * update - (Defaults to 30 minutes), when updating the Channel * delete - (Defaults to 30 minutes), when destroying the Channel

Import

Channels can be imported using the id, e.g.

$ terraform import oci_mysql_channel.test_channel "id"