Creating a connection in a streams flow

You connect to data sources and targets by using a connection to a service instance in IBM Cloud. Connections are shared among stream flows within the same project.

You can create a connection to the following types of service instances:

  • Your service instance in IBM

    These instances are your provisioned services in IBM Cloud based on your region, organization, and space. As a result, the service’s access credentials automatically populate the appropriate fields in the Create Connection window.

  • IBM services in IBM Cloud

    These instances are IBM Cloud services instances that are external to your region, organization, and space. For example, you want to connect to an Event Streams service instance that you provisioned in a different region. To create a connection, you must supply the access parameters to that service instance.

Prerequisites

The Service Location Filters in your IBM Watson Studio profile must include the same region as the resource you want to connect to. For example, you cannot create a connection to a resource in Frankfurt unless the Service Location Filters includes Germany.


To create a connection, perform the following steps:

  1. In the streams flow canvas, click the source or target operator to open its Properties pane.

  2. Go to the Connection widget Connection widget, and then click **Add Connection**.

.

  1. In the Create Connection window, select the service instance that you want to connect to.
    • To create a connection to your service instance, click the name of the instance. Access credentials automatically populate the fields in the Connection Details pane.
    • To create a connection to some other IBM service in IBM Cloud, perform the following steps:

      a. Open a second browser window, and then log in to your IBM Cloud Dashboard where the service is provisioned.

      b. Click the service that you want to make a connection to.

      c. In the left pane of the service window, click Service credentials. In the Service credentials table, click View credentials in the Actions column. Access credentials are shown.

      d. If you need an endpoint, click Endpoint in the left pane of the service window. Note the public endpoint that you want to use.

      e. In the Create Connection window, type in the access credentials and endpoint in the Connection Details pane.

  2. If you need to control access to buckets, follow the instructions in Control access to COS buckets. For more information about COS buckets in a streams flow, see Buckets.

  3. Click Create.