oci_database_cloud_autonomous_vm_cluster

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

Creates an Autonomous Exadata VM cluster in the Oracle cloud. For Exadata Cloud@Customer systems, see CreateAutonomousVmCluster.

Example Usage

resource "oci_database_cloud_autonomous_vm_cluster" "test_cloud_autonomous_vm_cluster" {
	#Required
	cloud_exadata_infrastructure_id = oci_database_cloud_exadata_infrastructure.test_cloud_exadata_infrastructure.id
	compartment_id = var.compartment_id
	display_name = var.cloud_autonomous_vm_cluster_display_name
	subnet_id = oci_core_subnet.test_subnet.id

	#Optional
	autonomous_data_storage_size_in_tbs = var.cloud_autonomous_vm_cluster_autonomous_data_storage_size_in_tbs
	cluster_time_zone = var.cloud_autonomous_vm_cluster_cluster_time_zone
	compute_model = var.cloud_autonomous_vm_cluster_compute_model
	cpu_core_count_per_node = var.cloud_autonomous_vm_cluster_cpu_core_count_per_node
	db_servers = var.cloud_autonomous_vm_cluster_db_servers
	defined_tags = var.cloud_autonomous_vm_cluster_defined_tags
	description = var.cloud_autonomous_vm_cluster_description
	freeform_tags = {"Department"= "Finance"}
	is_mtls_enabled_vm_cluster = var.cloud_autonomous_vm_cluster_is_mtls_enabled_vm_cluster
	license_model = var.cloud_autonomous_vm_cluster_license_model
	maintenance_window_details {

		#Optional
		custom_action_timeout_in_mins = var.cloud_autonomous_vm_cluster_maintenance_window_details_custom_action_timeout_in_mins
		days_of_week {
			#Required
			name = var.cloud_autonomous_vm_cluster_maintenance_window_details_days_of_week_name
		}
		hours_of_day = var.cloud_autonomous_vm_cluster_maintenance_window_details_hours_of_day
		is_custom_action_timeout_enabled = var.cloud_autonomous_vm_cluster_maintenance_window_details_is_custom_action_timeout_enabled
		is_monthly_patching_enabled = var.cloud_autonomous_vm_cluster_maintenance_window_details_is_monthly_patching_enabled
		lead_time_in_weeks = var.cloud_autonomous_vm_cluster_maintenance_window_details_lead_time_in_weeks
		months {
			#Required
			name = var.cloud_autonomous_vm_cluster_maintenance_window_details_months_name
		}
		patching_mode = var.cloud_autonomous_vm_cluster_maintenance_window_details_patching_mode
		preference = var.cloud_autonomous_vm_cluster_maintenance_window_details_preference
		weeks_of_month = var.cloud_autonomous_vm_cluster_maintenance_window_details_weeks_of_month
	}
	memory_per_oracle_compute_unit_in_gbs = var.cloud_autonomous_vm_cluster_memory_per_oracle_compute_unit_in_gbs
	nsg_ids = var.cloud_autonomous_vm_cluster_nsg_ids
	scan_listener_port_non_tls = var.cloud_autonomous_vm_cluster_scan_listener_port_non_tls
	scan_listener_port_tls = var.cloud_autonomous_vm_cluster_scan_listener_port_tls
	total_container_databases = var.cloud_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:

Subnet Restrictions: * For Exadata and virtual machine 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.128.0/20.

These subnets are used by the Oracle Clusterware private interconnect on the database instance. Specifying an overlapping subnet will cause the private interconnect to malfunction. This restriction applies to both the client subnet and backup subnet. * time_created - The date and time that the cloud Autonomous VM cluster was created. * time_updated - The last date and time that the cloud Autonomous VM cluster was updated. * total_autonomous_data_storage_in_tbs - The total data disk group size for Autonomous Databases, in TBs. * total_container_databases - The total number of Autonomous Container Databases that can be created with the allocated local storage. * total_cpus - The total number of CPUs in an Autonomous VM Cluster.

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Cloud Autonomous Vm Cluster * update - (Defaults to 20 minutes), when updating the Cloud Autonomous Vm Cluster * delete - (Defaults to 20 minutes), when destroying the Cloud Autonomous Vm Cluster

Import

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

$ terraform import oci_database_cloud_autonomous_vm_cluster.test_cloud_autonomous_vm_cluster "id"