» oci_database_db_node_console_connection

This resource provides the Db Node Console Connection resource in Oracle Cloud Infrastructure Database service.

Creates a new console connection to the specified dbNode. After the console connection has been created and is available, you connect to the console using SSH.

» Example Usage

resource "oci_database_db_node_console_connection" "test_db_node_console_connection" {
    #Required
    db_node_id = "${oci_database_db_node.test_db_node.id}"
    public_key = "${var.db_node_console_connection_public_key}"
}

» Argument Reference

The following arguments are supported:

  • db_node_id - (Required) The database node OCID.
  • public_key - (Required) The SSH public key used to authenticate the console connection.

** 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:

  • compartment_id - The OCID of the compartment to contain the console connection.
  • connection_string - The SSH connection string for the console connection.
  • db_node_id - The OCID of the database node.
  • fingerprint - The SSH public key fingerprint for the console connection.
  • id - The OCID of the console connection.
  • state - The current state of the console connection.

» Import

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

$ terraform import oci_database_db_node_console_connection.test_db_node_console_connection "dbNodes/{dbNodeId}/consoleConnections/{consoleConnectionId}"