oci_database_external_database_connector

This resource provides the External Database Connector resource in Oracle Cloud Infrastructure Database service.

Creates a new external database connector.

Example Usage

resource "oci_database_external_database_connector" "test_external_database_connector" {
	#Required
	connection_credentials {
		#Required
		credential_name = var.external_database_connector_connection_credentials_credential_name

		#Optional
		credential_type = var.external_database_connector_connection_credentials_credential_type
		password = var.external_database_connector_connection_credentials_password
		role = var.external_database_connector_connection_credentials_role
		ssl_secret_id = oci_vault_secret.test_secret.id
		username = var.external_database_connector_connection_credentials_username
	}
	connection_string {
		#Required
		hostname = var.external_database_connector_connection_string_hostname
		port = var.external_database_connector_connection_string_port
		protocol = var.external_database_connector_connection_string_protocol
		service = var.external_database_connector_connection_string_service
	}
	connector_agent_id = oci_database_connector_agent.test_connector_agent.id
	display_name = var.external_database_connector_display_name
	external_database_id = oci_database_database.test_database.id

	#Optional
	connector_type = var.external_database_connector_connector_type
	defined_tags = var.external_database_connector_defined_tags
	freeform_tags = {"Department"= "Finance"}
}

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

Import

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

$ terraform import oci_database_external_database_connector.test_external_database_connector "id"