Configure and create a stream in the Streaming service.
Before publishing messages to a stream or consuming messages from a stream, you must first create a stream. When creating a stream, consider your partitioning and security strategies. To review requirements for creating and managing streams, see Getting Started with Streaming.
On the Streams list page, select Create Stream Pool. If you need help finding the list page, see Listing Streams.
Complete the options to create a stream:
Stream Name: Enter a name for the stream. The name doesn't have to be unique within the compartment, but must be unique to the stream pool. The stream name can't be changed. Avoid entering confidential information.
Compartment: Select the compartment in which to create the stream.
Stream Pool: Select the stream pool to contain your stream.
If the compartment has an existing stream pool, you can select it.
If no stream pool exists in the compartment, select Create New Stream Pool and configure the stream pool. For instructions, see step 5 in Creating a Stream Pool.
Provide values for Define Stream Settings:
Retention (in hours): Enter the number of hours (from 24 to 168) to retain messages in this stream. The default value is 24.
Number of Partitions: Enter the number of partitions for the stream. The maximum number is based on the limits for your tenancy.
The maximum Total Write Rate and Total Read Rate values for the stream are displayed as you adjust the number of partitions.
(Optional)
Add one or more tags to the stream: Select Show Advanced Options to show the Add Tags section.
If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option or ask an administrator. You can apply tags later.
The examples in this section use the full syntax for all parameters, for
example --compartment-id. For some parameters, there are shortened
versions that you can use instead, like -c. See the CLI online help for
instances of a shortened parameter associated with a command.
You can create a stream in a compartment or a stream pool. The
--compartment-id and --stream-pool-id parameters
cannot be specified at the same time.
Resource Manager is an Oracle Cloud Infrastructure (OCI) service that allows you to automate the process of provisioning your OCI resources. Using Terraform, Resource Manager helps you install, configure, and manage resources through the "infrastructure-as-code" model.
A Terraform configuration codifies your infrastructure in declarative configuration files. The configuration defines the resources you intend to provision, variables, and specific instructions for provisioning the resources
You can use Resource Manager or the Terraform CLI with the OCI Terraform provider to see how your streams and stream pools are represented in Terraform configuration files.