» oci_database_vm_cluster

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

Creates a 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
    defined_tags = "${var.vm_cluster_defined_tags}"
    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}"
    time_zone = "${var.vm_cluster_time_zone}"
}

» Argument Reference

The following arguments are supported:

  • compartment_id - (Required) (Updatable) The OCID of the compartment.
  • cpu_core_count - (Required) (Updatable) The number of CPU cores to enable for the VM cluster.
  • defined_tags - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
  • display_name - (Required) The user-friendly name for the VM cluster. The name does not need to be unique.
  • exadata_infrastructure_id - (Required) The OCID of the Exadata infrastructure.
  • freeform_tags - (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
  • gi_version - (Required) The Oracle Grid Infrastructure software version for the VM cluster.
  • is_local_backup_enabled - (Optional) If true, database backup on local Exadata storage is configured for the VM cluster. If false, database backup on local Exadata storage is not available in the VM cluster.
  • is_sparse_diskgroup_enabled - (Optional) If true, the sparse disk group is configured for the VM cluster. If false, the sparse disk group is not created.
  • license_model - (Optional) (Updatable) The Oracle license model that applies to the VM cluster. The default is BRING_YOUR_OWN_LICENSE.
  • ssh_public_keys - (Required) (Updatable) The public key portion of one or more key pairs used for SSH access to the VM cluster.
  • time_zone - (Optional) The time zone to use for the VM cluster. For details, see DB System Time Zones.
  • vm_cluster_network_id - (Required) The OCID of the VM cluster network.

** 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:

  • compartment_id - The OCID of the compartment.
  • cpus_enabled - The number of enabled CPU cores.
  • data_storage_size_in_tbs - Size, in terabytes, of the DATA disk group.
  • defined_tags - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
  • display_name - The user-friendly name for the VM cluster. The name does not need to be unique.
  • exadata_infrastructure_id - The OCID of the Exadata infrastructure.
  • freeform_tags - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
  • gi_version - The Oracle Grid Infrastructure software version for the VM cluster.
  • id - The OCID of the VM cluster.
  • is_local_backup_enabled - If true, database backup on local Exadata storage is configured for the VM cluster. If false, database backup on local Exadata storage is not available in the VM cluster.
  • is_sparse_diskgroup_enabled - If true, sparse disk group is configured for the VM cluster. If false, sparse disk group is not created.
  • license_model - The Oracle license model that applies to the VM cluster. The default is LICENSE_INCLUDED.
  • lifecycle_details - Additional information about the current lifecycle state.
  • shape - The shape of the Exadata infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance.
  • ssh_public_keys - The public key portion of one or more key pairs used for SSH access to the VM cluster.
  • state - The current state of the VM cluster.
  • time_created - The date and time that the VM cluster was created.
  • time_zone - The time zone of the Exadata infrastructure. For details, see Exadata Infrastructure Time Zones.
  • vm_cluster_network_id - The OCID of the VM cluster network.

» Import

Import is not supported for this resource.