oci_core_instance_console_connection

This resource provides the Instance Console Connection resource in Oracle Cloud Infrastructure Core service.

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

For more information about instance console connections, see Troubleshooting Instances Using Instance Console Connections.

Example Usage

resource "oci_core_instance_console_connection" "test_instance_console_connection" {
	#Required
	instance_id = oci_core_instance.test_instance.id
	public_key = var.instance_console_connection_public_key

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	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 Instance Console Connection * update - (Defaults to 20 minutes), when updating the Instance Console Connection * delete - (Defaults to 20 minutes), when destroying the Instance Console Connection

Import

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

$ terraform import oci_core_instance_console_connection.test_instance_console_connection "id"