oci_streaming_stream

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

Starts the provisioning of a new stream. The stream will be created in the given compartment id or stream pool id, depending on which parameter is specified. Compartment id and stream pool id cannot be specified at the same time. To track the progress of the provisioning, you can periodically call GetStream. In the response, the lifecycleState parameter of the Stream object tells you its current state.

Example Usage

resource "oci_streaming_stream" "test_stream" {
	#Required
	name = var.stream_name
	partitions = var.stream_partitions

	#Optional
	compartment_id = var.compartment_id
	defined_tags = var.stream_defined_tags
	freeform_tags = {"Department"= "Finance"}
	retention_in_hours = var.stream_retention_in_hours
	stream_pool_id = oci_streaming_stream_pool.test_stream_pool.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 * update - (Defaults to 20 minutes), when updating the Stream * delete - (Defaults to 20 minutes), when destroying the Stream

Import

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

$ terraform import oci_streaming_stream.test_stream "id"