oci_streaming_stream_pool

This resource provides the Stream Pool resource in Oracle Cloud Infrastructure Streaming service.

Starts the provisioning of a new stream pool. To track the progress of the provisioning, you can periodically call GetStreamPool. In the response, the lifecycleState parameter of the object tells you its current state.

Example Usage

resource "oci_streaming_stream_pool" "test_stream_pool" {
	#Required
	compartment_id = var.compartment_id
	name = var.stream_pool_name

	#Optional
	custom_encryption_key {
		#Required
		kms_key_id = oci_kms_key.test_key.id
	}
	defined_tags = var.stream_pool_defined_tags
	freeform_tags = {"Department"= "Finance"}
	kafka_settings {

		#Optional
		auto_create_topics_enable = var.stream_pool_kafka_settings_auto_create_topics_enable
		bootstrap_servers = var.stream_pool_kafka_settings_bootstrap_servers
		log_retention_hours = var.stream_pool_kafka_settings_log_retention_hours
		num_partitions = var.stream_pool_kafka_settings_num_partitions
	}
	private_endpoint_settings {

		#Optional
		nsg_ids = var.stream_pool_private_endpoint_settings_nsg_ids
		private_endpoint_ip = var.stream_pool_private_endpoint_settings_private_endpoint_ip
		subnet_id = oci_core_subnet.test_subnet.id
	}
}

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

Import

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

$ terraform import oci_streaming_stream_pool.test_stream_pool "id"