oci_core_dedicated_vm_host

This resource provides the Dedicated Vm Host resource in Oracle Cloud Infrastructure Core service.

Creates a new dedicated virtual machine host in the specified compartment and the specified availability domain. Dedicated virtual machine hosts enable you to run your Compute virtual machine (VM) instances on dedicated servers that are a single tenant and not shared with other customers. For more information, see Dedicated Virtual Machine Hosts.

Example Usage

resource "oci_core_dedicated_vm_host" "test_dedicated_vm_host" {
	#Required
	availability_domain = var.dedicated_vm_host_availability_domain
	compartment_id = var.compartment_id
	dedicated_vm_host_shape = var.dedicated_vm_host_dedicated_vm_host_shape

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.dedicated_vm_host_display_name
	fault_domain = var.dedicated_vm_host_fault_domain
	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 Dedicated Vm Host * update - (Defaults to 20 minutes), when updating the Dedicated Vm Host * delete - (Defaults to 20 minutes), when destroying the Dedicated Vm Host

Import

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

$ terraform import oci_core_dedicated_vm_host.test_dedicated_vm_host "id"