Moving a Stream Pool to a Different Compartment

Move a stream pool in the Streaming service to a different compartment.

    1. On the Stream Pools list page, find the stream pool that you want to work with. If you need help finding the list page or the stream pool, see Listing Stream Pools.
    2. From the Actions menu (Actions Menu), select Move Resource.
    3. In the Move Resource dialog box, select the compartment that you want to move the Kafka Connect configuration to.
    4. Select Move resource.
  • Use the oci streaming admin stream-pool change-compartment command and required parameters to move a stream pool to a different compartment:

    oci streaming admin stream-pool change-compartment --stream-pool-id <stream_pool_OCID> --compartment-id <target_compartment_OCID>

    For example:

    oci streaming admin stream-pool change-compartment --stream-pool-id ocid1.streampool.oc1.phx.exampleuniqueID --compartment-id ocid1.compartment.oc1..exampleuniqueID
    {
      "etag": "\"exampleuniqueID\""
    }

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the ChangeStreamPoolCompartment operation to move a stream pool to a different compartment.

Using Resource Manager and Terraform

Update the oci_streaming_stream_pool resource in your Terraform configuration and edit your stack or run a terraform apply job.

About Resource Manager and Terraform

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.

For more information about writing configurations for use with Resource Manager, see Terraform Configurations for Resource Manager and Terraform Configuration.