oci_database_cloud_vm_cluster

This resource provides the Cloud Vm Cluster resource in Oracle Cloud Infrastructure Database service.

Creates a cloud VM cluster.

Example Usage

resource "oci_database_cloud_vm_cluster" "test_cloud_vm_cluster" {
	#Required
	backup_subnet_id = oci_core_subnet.test_subnet.id
	cloud_exadata_infrastructure_id = oci_database_cloud_exadata_infrastructure.test_cloud_exadata_infrastructure.id
	compartment_id = var.compartment_id
	cpu_core_count = var.cloud_vm_cluster_cpu_core_count
	display_name = var.cloud_vm_cluster_display_name
	gi_version = var.cloud_vm_cluster_gi_version
	hostname = var.cloud_vm_cluster_hostname
	ssh_public_keys = var.cloud_vm_cluster_ssh_public_keys
	subnet_id = oci_core_subnet.test_subnet.id

	#Optional
	backup_network_nsg_ids = var.cloud_vm_cluster_backup_network_nsg_ids
	cluster_name = var.cloud_vm_cluster_cluster_name
	data_collection_options {

		#Optional
		is_diagnostics_events_enabled = var.cloud_vm_cluster_data_collection_options_is_diagnostics_events_enabled
        is_health_monitoring_enabled = var.cloud_vm_cluster_data_collection_options_is_health_monitoring_enabled
        is_incident_logs_enabled = var.cloud_vm_cluster_data_collection_options_is_incident_logs_enabled
	}
	data_storage_percentage = var.cloud_vm_cluster_data_storage_percentage
	data_storage_size_in_tbs = var.cloud_vm_cluster_data_storage_size_in_tbs
	db_node_storage_size_in_gbs = var.cloud_vm_cluster_db_node_storage_size_in_gbs
	db_servers = var.cloud_vm_cluster_db_servers
	defined_tags = var.cloud_vm_cluster_defined_tags
	domain = var.cloud_vm_cluster_domain
	file_system_configuration_details {

		#Optional
		file_system_size_gb = var.cloud_vm_cluster_file_system_configuration_details_file_system_size_gb
		mount_point = var.cloud_vm_cluster_file_system_configuration_details_mount_point
	}
	freeform_tags = {"Department"= "Finance"}
	is_local_backup_enabled = var.cloud_vm_cluster_is_local_backup_enabled
	is_sparse_diskgroup_enabled = var.cloud_vm_cluster_is_sparse_diskgroup_enabled
	license_model = var.cloud_vm_cluster_license_model
	memory_size_in_gbs = var.cloud_vm_cluster_memory_size_in_gbs
	nsg_ids = var.cloud_vm_cluster_nsg_ids
	ocpu_count = var.cloud_vm_cluster_ocpu_count
	private_zone_id = oci_dns_zone.test_zone.id
	scan_listener_port_tcp = var.cloud_vm_cluster_scan_listener_port_tcp
	scan_listener_port_tcp_ssl = var.cloud_vm_cluster_scan_listener_port_tcp_ssl
	system_version = var.cloud_vm_cluster_system_version
	time_zone = var.cloud_vm_cluster_time_zone
}

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 12 hours), when creating the Cloud Vm Cluster * update - (Defaults to 12 hours), when updating the Cloud Vm Cluster * delete - (Defaults to 12 hours), when destroying the Cloud Vm Cluster

Import

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

$ terraform import oci_database_cloud_vm_cluster.test_cloud_vm_cluster "id"