oci_database_vm_cluster

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

Creates an Exadata Cloud@Customer VM cluster.

Example Usage

resource "oci_database_vm_cluster" "test_vm_cluster" {
	#Required
	compartment_id = var.compartment_id
	cpu_core_count = var.vm_cluster_cpu_core_count
	display_name = var.vm_cluster_display_name
	exadata_infrastructure_id = oci_database_exadata_infrastructure.test_exadata_infrastructure.id
	gi_version = var.vm_cluster_gi_version
	ssh_public_keys = var.vm_cluster_ssh_public_keys
	vm_cluster_network_id = oci_database_vm_cluster_network.test_vm_cluster_network.id

	#Optional
	cloud_automation_update_details {

		#Optional
		apply_update_time_preference {

			#Optional
			apply_update_preferred_end_time = var.vm_cluster_cloud_automation_update_details_apply_update_time_preference_apply_update_preferred_end_time
			apply_update_preferred_start_time = var.vm_cluster_cloud_automation_update_details_apply_update_time_preference_apply_update_preferred_start_time
		}
		freeze_period {

			#Optional
			freeze_period_end_time = var.vm_cluster_cloud_automation_update_details_freeze_period_freeze_period_end_time
			freeze_period_start_time = var.vm_cluster_cloud_automation_update_details_freeze_period_freeze_period_start_time
		}
		is_early_adoption_enabled = var.vm_cluster_cloud_automation_update_details_is_early_adoption_enabled
		is_freeze_period_enabled = var.vm_cluster_cloud_automation_update_details_is_freeze_period_enabled
	}
	data_collection_options {

		#Optional
		is_diagnostics_events_enabled = var.vm_cluster_data_collection_options_is_diagnostics_events_enabled
		is_health_monitoring_enabled = var.vm_cluster_data_collection_options_is_health_monitoring_enabled
		is_incident_logs_enabled = var.vm_cluster_data_collection_options_is_incident_logs_enabled
	}
	data_storage_size_in_tbs = var.vm_cluster_data_storage_size_in_tbs
	db_node_storage_size_in_gbs = var.vm_cluster_db_node_storage_size_in_gbs
	db_servers = var.vm_cluster_db_servers
	defined_tags = var.vm_cluster_defined_tags
	file_system_configuration_details {

		#Optional
		file_system_size_gb = var.vm_cluster_file_system_configuration_details_file_system_size_gb
		mount_point = var.vm_cluster_file_system_configuration_details_mount_point
	}
	freeform_tags = {"Department"= "Finance"}
	is_local_backup_enabled = var.vm_cluster_is_local_backup_enabled
	is_sparse_diskgroup_enabled = var.vm_cluster_is_sparse_diskgroup_enabled
	license_model = var.vm_cluster_license_model
	memory_size_in_gbs = var.vm_cluster_memory_size_in_gbs
	system_version = var.vm_cluster_system_version
	time_zone = var.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 20 minutes), when creating the Vm Cluster * update - (Defaults to 20 minutes), when updating the Vm Cluster * delete - (Defaults to 20 minutes), when destroying the Vm Cluster

Import

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

$ terraform import oci_database_vm_cluster.test_vm_cluster "id"