Skip to content
This repository has been archived by the owner on Feb 7, 2018. It is now read-only.

Provision and bind a service instance in Bluemix

Jess Mantaro edited this page Feb 9, 2016 · 2 revisions

Create a service instance and bind it to your Simple Data Pipe app in one of 2 ways. You can:

##Use Cloud Foundry

The following example illustrates how to create a weather service instance and bind it to the Simple Data Pipe application.

  1. If this is the first time you are using the Cloud Foundry command line interface, download and install the software.

Open this link.

  1. Open a command prompt and connect to Bluemix, by following the prompts.
$ cf login

Pro Tip: You remain logged in until you explicitly log out using the cf logout command. You therefore don't have to log in every time you want to use the command line interface.

  1. Create a service instance
$ cf create-service weatherinsights Free weather
  1. Bind the service instance to the application.
$ cf bind-service simple-data-pipe weather
  1. Restage the application.
$ cf restage simple-data-pipe
  1. Verify that the service instance is bound to the application.
$ cf services

##Use the Bluemix user interface

The following example illustrates how to create an Insights for Weather service instance and bind it to a previously deployed the Simple Data Pipe application.

  1. Open Bluemix and log in using your IBM ID.

  2. Open the DASHBOARD.

  3. Select the space into which the Simple Data Pipe application has been deployed.

Tip: If you cannot locate the space, make sure you are using the correct org.

  1. Locate the Simple Data Pipe application tile and click it.

  2. Click + ADD A SERVICE OR API.

  3. In the search box, enter the name of the service you want to use, like Insights for Weather.

  4. Click the tile for the desired service, like Insights for Weather.

  5. Enter a service name, like weather.

  6. Click Create.

  7. Click RESTAGE to restage the application now.