oci_database_migration_connection

This resource provides the Connection resource in Oracle Cloud Infrastructure Database Migration service.

Create a Database Connection resource that contains the details to connect to either a Source or Target Database in the migration.

Note: If you wish to use the DMS deprecated API version /20210929 it is necessary to pin the Terraform Provider version to v5.47.0. Newer Terraform provider versions will not support the DMS deprecated API version /20210929

Example Usage

resource "oci_database_migration_connection" "test_connection" {
	#Required
	compartment_id = var.compartment_id
	connection_type = var.connection_connection_type
	display_name = var.connection_display_name
	key_id = oci_kms_key.test_key.id
	password = var.connection_password
	technology_type = var.connection_technology_type
	username = var.connection_username
	vault_id = oci_kms_vault.test_vault.id

	#Optional
	additional_attributes {

		#Optional
		name = var.connection_additional_attributes_name
		value = var.connection_additional_attributes_value
	}
	connection_string = var.connection_connection_string
	database_id = oci_database_database.test_database.id
	database_name = oci_database_database.test_database.name
	db_system_id = oci_database_db_system.test_db_system.id
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.connection_description
	freeform_tags = var.connection_freeform_tags
	host = var.connection_host
	nsg_ids = var.connection_nsg_ids
	port = var.connection_port
	replication_password = var.connection_replication_password
	replication_username = var.connection_replication_username
	security_protocol = var.connection_security_protocol
	ssh_host = var.connection_ssh_host
	ssh_key = var.connection_ssh_key
	ssh_sudo_location = var.connection_ssh_sudo_location
	ssh_user = var.connection_ssh_user
	ssl_ca = var.connection_ssl_ca
	ssl_cert = var.connection_ssl_cert
	ssl_crl = var.connection_ssl_crl
	ssl_key = var.connection_ssl_key
	ssl_mode = var.connection_ssl_mode
	subnet_id = oci_core_subnet.test_subnet.id
	wallet = var.connection_wallet
}

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 20 minutes), when creating the Connection * update - (Defaults to 20 minutes), when updating the Connection * delete - (Defaults to 20 minutes), when destroying the Connection

Import

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

$ terraform import oci_database_migration_connection.test_connection "id"