oci_ocvp_cluster

This resource provides the Cluster resource in Oracle Cloud Infrastructure Oracle Cloud VMware Solution service.

Create a vSphere Cluster in software-defined data center (SDDC).

Use the WorkRequest operations to track the creation of the Cluster.

Important: You must configure the Cluster’s networking resources with the security rules detailed in Security Rules for Oracle Cloud VMware Solution SDDCs. Otherwise, provisioning the SDDC will fail. The rules are based on the requirements set by VMware.

Example Usage

resource "oci_ocvp_cluster" "test_cluster" {
	#Required
	compute_availability_domain = var.cluster_compute_availability_domain
	esxi_hosts_count = var.cluster_esxi_hosts_count
	network_configuration {
		#Required
		nsx_edge_vtep_vlan_id = oci_core_vlan.test_vlan.id
		nsx_vtep_vlan_id = oci_core_vlan.test_vlan.id
		provisioning_subnet_id = oci_core_subnet.test_subnet.id
		vmotion_vlan_id = oci_core_vlan.test_vlan.id
		vsan_vlan_id = oci_core_vlan.test_vlan.id

		#Optional
		hcx_vlan_id = oci_core_vlan.test_vlan.id
		nsx_edge_uplink1vlan_id = oci_ocvp_nsx_edge_uplink1vlan.test_nsx_edge_uplink1vlan.id
		nsx_edge_uplink2vlan_id = oci_ocvp_nsx_edge_uplink2vlan.test_nsx_edge_uplink2vlan.id
		provisioning_vlan_id = oci_core_vlan.test_vlan.id
		replication_vlan_id = oci_core_vlan.test_vlan.id
		vsphere_vlan_id = oci_core_vlan.test_vlan.id
	}
	sddc_id = oci_ocvp_sddc.test_sddc.id

	#Optional
	capacity_reservation_id = oci_ocvp_capacity_reservation.test_capacity_reservation.id
	datastores {
		#Required
		block_volume_ids = var.cluster_datastores_block_volume_ids
		datastore_type = var.cluster_datastores_datastore_type
	}
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.cluster_display_name
	esxi_software_version = var.cluster_esxi_software_version
	freeform_tags = {"Department"= "Finance"}
	initial_commitment = var.cluster_initial_commitment
	initial_host_ocpu_count = var.cluster_initial_host_ocpu_count
	initial_host_shape_name = oci_core_shape.test_shape.name
	instance_display_name_prefix = var.cluster_instance_display_name_prefix
	is_shielded_instance_enabled = var.cluster_is_shielded_instance_enabled
	vmware_software_version = var.cluster_vmware_software_version
	workload_network_cidr = var.cluster_workload_network_cidr
}

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

Import

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

$ terraform import oci_ocvp_cluster.test_cluster "id"