oci_database_tools_database_tools_connection

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

Creates a new Database Tools connection.

Example Usage

resource "oci_database_tools_database_tools_connection" "test_database_tools_connection" {
    #Required
    compartment_id = var.compartment_id
    display_name = var.database_tools_connection_display_name
    type = var.database_tools_connection_type
    user_name = oci_identity_user.test_user.name
    user_password {
        #Required
        secret_id = oci_vault_secret.test_secret.id
        value_type = var.database_tools_connection_user_password_value_type
    }

    #Optional
    advanced_properties = var.database_tools_connection_advanced_properties
    connection_string = var.database_tools_connection_connection_string
    defined_tags = {"foo-namespace.bar-key"= "value"}
    freeform_tags = {"bar-key"= "value"}
    key_stores {

        #Optional
        key_store_content {
            #Required
            value_type = var.database_tools_connection_key_stores_key_store_content_value_type

            #Optional
            secret_id = oci_vault_secret.test_secret.id
        }
        key_store_password {
            #Required
            value_type = var.database_tools_connection_key_stores_key_store_password_value_type

            #Optional
            secret_id = oci_vault_secret.test_secret.id
        }
        key_store_type = var.database_tools_connection_key_stores_key_store_type
    }
    locks {
        #Required
        type = var.database_tools_connection_locks_type

        #Optional
        message = var.database_tools_connection_locks_message
        related_resource_id = oci_usage_proxy_resource.test_resource.id
        time_created = var.database_tools_connection_locks_time_created
    }
    private_endpoint_id = oci_database_tools_database_tools_private_endpoint.test_database_tools_private_endpoint.id
    proxy_client {
        proxy_authentication_type = var.database_tools_connection_proxy_client_proxy_authentication_type
        roles = var.database_tools_connection_proxy_client_roles
        user_name = oci_identity_user.test_user.name
        user_password {
            #Required
            secret_id = oci_vault_secret.test_secret.id
            value_type = var.database_tools_connection_proxy_client_user_password_value_type
        }       
    }
    private_endpoint_id = oci_dataflow_private_endpoint.test_private_endpoint.id
    related_resource {
        entity_type = var.database_tools_connection_related_resource_entity_type
        identifier = var.database_tools_connection_related_resource_identifier
    }
    runtime_support = var.database_tools_connection_runtime_support
    url = var.database_tools_connection_url
}

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

Import

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

$ terraform import oci_database_tools_database_tools_connection.test_database_tools_connection "id"