oci_database_exadb_vm_cluster

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

Creates an Exadata VM cluster on Exascale Infrastructure

Example Usage

resource "oci_database_exadb_vm_cluster" "test_exadb_vm_cluster" {
	#Required
	availability_domain = var.exadb_vm_cluster_availability_domain
	backup_subnet_id = oci_core_subnet.test_subnet.id
	compartment_id = var.compartment_id
	display_name = var.exadb_vm_cluster_display_name
	exascale_db_storage_vault_id = oci_database_exascale_db_storage_vault.test_exascale_db_storage_vault.id
	grid_image_id = oci_core_image.test_image.id
	hostname = var.exadb_vm_cluster_hostname
	shape = var.exadb_vm_cluster_shape
    
    node_config {
      enabled_ecpu_per_node          = var.exadb_vm_cluster_enabled_ecpu_per_node
      total_ecpu_per_node            = var.exadb_vm_cluster_total_ecpu_per_node
      vm_file_system_storage_size_gbs_per_node = var.exadb_vm_cluster_vm_file_system_storage_size_in_gbs_per_node
    }
  
    node_resource {
      node_name = "node1"
    }
  
    node_resource {
      node_name = "node2"
    }
  
	ssh_public_keys = var.exadb_vm_cluster_ssh_public_keys
	subnet_id = oci_core_subnet.test_subnet.id

	#Optional
	backup_network_nsg_ids = var.exadb_vm_cluster_backup_network_nsg_ids
	cluster_name = var.exadb_vm_cluster_cluster_name
	data_collection_options {
		#Optional
		is_diagnostics_events_enabled = var.exadb_vm_cluster_data_collection_options_is_diagnostics_events_enabled
		is_health_monitoring_enabled = var.exadb_vm_cluster_data_collection_options_is_health_monitoring_enabled
		is_incident_logs_enabled = var.exadb_vm_cluster_data_collection_options_is_incident_logs_enabled
	}
	defined_tags = var.exadb_vm_cluster_defined_tags
	domain = var.exadb_vm_cluster_domain
	freeform_tags = {"Department"= "Finance"}
	license_model = var.exadb_vm_cluster_license_model
	nsg_ids = var.exadb_vm_cluster_nsg_ids
	private_zone_id = oci_dns_zone.test_zone.id
	scan_listener_port_tcp = var.exadb_vm_cluster_scan_listener_port_tcp
	scan_listener_port_tcp_ssl = var.exadb_vm_cluster_scan_listener_port_tcp_ssl
	system_version = var.exadb_vm_cluster_system_version
	time_zone = var.exadb_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 Exadb Vm Cluster * update - (Defaults to 20 minutes), when updating the Exadb Vm Cluster * delete - (Defaults to 20 minutes), when destroying the Exadb Vm Cluster

Import

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

$ terraform import oci_database_exadb_vm_cluster.test_exadb_vm_cluster "id"