oci_database_autonomous_vm_cluster

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

Creates an Autonomous VM cluster for Exadata Cloud@Customer. To create an Autonomous VM Cluster in the Oracle cloud, see CreateCloudAutonomousVmCluster.

Example Usage

resource "oci_database_autonomous_vm_cluster" "test_autonomous_vm_cluster" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.autonomous_vm_cluster_display_name
	exadata_infrastructure_id = oci_database_exadata_infrastructure.test_exadata_infrastructure.id
	vm_cluster_network_id = oci_database_vm_cluster_network.test_vm_cluster_network.id

	#Optional
	autonomous_data_storage_size_in_tbs = var.autonomous_vm_cluster_autonomous_data_storage_size_in_tbs
	compute_model = var.autonomous_vm_cluster_compute_model
	cpu_core_count_per_node = var.autonomous_vm_cluster_cpu_core_count_per_node
	db_servers = var.autonomous_vm_cluster_db_servers
	defined_tags = var.autonomous_vm_cluster_defined_tags
	freeform_tags = {"Department"= "Finance"}
	is_local_backup_enabled = var.autonomous_vm_cluster_is_local_backup_enabled
	is_mtls_enabled = var.autonomous_vm_cluster_is_mtls_enabled
	license_model = var.autonomous_vm_cluster_license_model
	maintenance_window_details {
        #Required

		#Optional
		days_of_week {
			#Required
			name = var.autonomous_vm_cluster_maintenance_window_details_days_of_week_name
		}
		hours_of_day = var.autonomous_vm_cluster_maintenance_window_details_hours_of_day
		lead_time_in_weeks = var.autonomous_vm_cluster_maintenance_window_details_lead_time_in_weeks
		months {
			#Required
			name = var.autonomous_vm_cluster_maintenance_window_details_months_name
		}
		patching_mode = var.autonomous_vm_cluster_maintenance_window_details_patching_mode
		preference = var.autonomous_vm_cluster_maintenance_window_details_preference
		skip_ru = var.autonomous_vm_cluster_maintenance_window_details_skip_ru
		weeks_of_month = var.autonomous_vm_cluster_maintenance_window_details_weeks_of_month
	}
	memory_per_oracle_compute_unit_in_gbs = var.autonomous_vm_cluster_memory_per_oracle_compute_unit_in_gbs
	scan_listener_port_non_tls = var.autonomous_vm_cluster_scan_listener_port_non_tls
	scan_listener_port_tls = var.autonomous_vm_cluster_scan_listener_port_tls
	time_zone = var.autonomous_vm_cluster_time_zone
	total_container_databases = var.autonomous_vm_cluster_total_container_databases
}

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

Import

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

$ terraform import oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster "id"