oci_bds_bds_instance

This resource provides the Bds Instance resource in Oracle Cloud Infrastructure Big Data Service 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
		number_of_nodes = var.bds_instance_number_of_nodes
		#Optional
        block_volume_size_in_gbs = var.bds_instance_nodes_block_volume_size_in_gbs
		shape_config {

			#Optional
			memory_in_gbs = var.bds_instance_nodes_shape_config_memory_in_gbs
            nvmes = var.bds_instance_nodes_shape_config_nvmes
			ocpus = var.bds_instance_nodes_shape_config_ocpus
		}
	}
	util_node {
		#Required
		shape = var.bds_instance_nodes_shape
		subnet_id = oci_core_subnet.test_subnet.id
		number_of_nodes = var.bds_instance_number_of_nodes
		#Optional
        block_volume_size_in_gbs = var.bds_instance_nodes_block_volume_size_in_gbs
		shape_config {

			#Optional
			memory_in_gbs = var.bds_instance_nodes_shape_config_memory_in_gbs
            nvmes = var.bds_instance_nodes_shape_config_nvmes
			ocpus = var.bds_instance_nodes_shape_config_ocpus
		}
	}
	worker_node {
		#Required
		shape = var.bds_instance_nodes_shape
		subnet_id = oci_core_subnet.test_subnet.id
		number_of_nodes = var.bds_instance_number_of_nodes
		#Optional
        block_volume_size_in_gbs = var.bds_instance_nodes_block_volume_size_in_gbs
		shape_config {

			#Optional
			memory_in_gbs = var.bds_instance_nodes_shape_config_memory_in_gbs
            nvmes = var.bds_instance_nodes_shape_config_nvmes
			ocpus = var.bds_instance_nodes_shape_config_ocpus
		}
	}
	compute_only_worker_node {
		#Required
		shape = var.bds_instance_nodes_shape
		subnet_id = oci_core_subnet.test_subnet.id
		number_of_nodes = var.bds_instance_number_of_nodes
		#Optional
        block_volume_size_in_gbs = var.bds_instance_nodes_block_volume_size_in_gbs
		shape_config {

			#Optional
			memory_in_gbs = var.bds_instance_nodes_shape_config_memory_in_gbs
			nvmes = var.bds_instance_nodes_shape_config_nvmes
			ocpus = var.bds_instance_nodes_shape_config_ocpus
		}
	}
    edge_node {
    	#Required
    	shape = var.bds_instance_nodes_shape
    	subnet_id = oci_core_subnet.test_subnet.id
    	number_of_nodes = var.bds_instance_number_of_nodes
    	#Optional
        block_volume_size_in_gbs = var.bds_instance_nodes_block_volume_size_in_gbs
    	shape_config {
    
    		#Optional
    		memory_in_gbs = var.bds_instance_nodes_shape_config_memory_in_gbs
    		nvmes = var.bds_instance_nodes_shape_config_nvmes
    		ocpus = var.bds_instance_nodes_shape_config_ocpus
    	}
    }
	kafka_broker_node {
		#Required
		shape = var.bds_instance_nodes_shape
		subnet_id = oci_core_subnet.test_subnet.id
		number_of_nodes = var.bds_instance_number_of_nodes
		#Optional
		block_volume_size_in_gbs = var.bds_instance_nodes_block_volume_size_in_gbs
		shape_config {

			#Optional
			memory_in_gbs = var.bds_instance_nodes_shape_config_memory_in_gbs
			nvmes = var.bds_instance_nodes_shape_config_nvmes
			ocpus = var.bds_instance_nodes_shape_config_ocpus
		}
	}

	#Optional
	bootstrap_script_url = var.bds_instance_bootstrap_script_url
	cluster_profile = var.bds_instance_cluster_profile
	defined_tags = var.bds_instance_defined_tags
	freeform_tags = var.bds_instance_freeform_tags
	kerberos_realm_name = var.bds_instance_kerberos_realm_name
	kms_key_id = var.bds_instance_kms_key_id
	ignore_existing_nodes_shape = var.ignore_existing_nodes_shape
	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:

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

Import

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

$ terraform import oci_bds_bds_instance.test_bds_instance "id"