» oci_bds_bds_instance

This resource provides the Bds Instance resource in Oracle Cloud Infrastructure Bds service.

Creates a new BDS instance.

» Example Usage

resource "oci_bds_bds_instance" "test_bds_instance" {
    #Required
    cluster_admin_password = "${var.bds_instance_cluster_admin_password}"
    cluster_public_key = "${var.bds_instance_cluster_public_key}"
    cluster_version = "${var.bds_instance_cluster_version}"
    compartment_id = "${var.compartment_id}"
    display_name = "${var.bds_instance_display_name}"
    is_high_availability = "${var.bds_instance_is_high_availability}"
    is_secure = "${var.bds_instance_is_secure}"
    master_node {
        #Required
        shape = "${var.bds_instance_nodes_shape}"
        subnet_id = "${oci_core_subnet.test_subnet.id}"
        block_volume_size_in_gbs = "${var.bds_instance_nodes_block_volume_size_in_gbs}"
    }
    util_node {
        #Required
        shape = "${var.bds_instance_nodes_shape}"
        subnet_id = "${oci_core_subnet.test_subnet.id}"
        block_volume_size_in_gbs = "${var.bds_instance_nodes_block_volume_size_in_gbs}"
    }
    worker_node {
        #Required
        shape = "${var.bds_instance_nodes_shape}"
        subnet_id = "${oci_core_subnet.test_subnet.id}"
        block_volume_size_in_gbs = "${var.bds_instance_nodes_block_volume_size_in_gbs}"
        number_of_worker = "{var.bds_instance_number_of_worker}"
    }

    #Optional
    defined_tags = {"foo-namespace.bar-key"= "value"}
    freeform_tags = {"bar-key"= "value"}
    network_config {

        #Optional
        cidr_block = "${var.bds_instance_network_config_cidr_block}"
        is_nat_gateway_required = "${var.bds_instance_network_config_is_nat_gateway_required}"
    }
}

» Argument Reference

The following arguments are supported:

  • cluster_admin_password - (Required) Base-64 encoded password for Cloudera Manager admin user
  • cluster_public_key - (Required) The SSH public key used to authenticate the cluster connection.
  • cluster_version - (Required) Version of the Hadoop distribution
  • compartment_id - (Required) (Updatable) The OCID of the compartment
  • display_name - (Required) (Updatable) Name of the BDS instance
  • is_cloud_sql_configured -(Optional) (Updatable) Boolean flag specifying whether we configure Cloud SQL or not
  • cloud_sql_details -(Optional) The information about added Cloud SQL capability
    • block_volume_size_in_gbs - (Required) The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
    • shape - (Required) Shape of the node
  • defined_tags - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
  • freeform_tags - (Optional) (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
  • is_high_availability - (Required) Boolean flag specifying whether or not the cluster is HA
  • is_secure - (Required) Boolean flag specifying whether or not the cluster should be setup as secure.
  • network_config - (Optional) Additional configuration of customer's network.
  • master_node - (Required) The master node in the BDS instance
    • block_volume_size_in_gbs - (Optional) The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
    • shape - (Required) Shape of the node
    • subnet_id - (Required) The OCID of the subnet in which the node should be created
  • util_node - (Required) The utility node in the BDS instance
    • block_volume_size_in_gbs - (Optional) The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
    • shape - (Required) Shape of the node
    • subnet_id - (Required) The OCID of the subnet in which the node should be created
  • woker_node - (Required) The master node in the BDS instance
    • block_volume_size_in_gbs - (Optional) The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
    • shape - (Required) Shape of the node
    • subnet_id - (Required) The OCID of the subnet in which the node should be created
    • number_of_workers - (Required) The amount of worker nodes should be created, at least be 3.

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

» Import

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

$ terraform import oci_bds_bds_instance.test_bds_instance "id"