Creating User Provided Service Instance (CUPS) for Postgres

Cloud Foundry has commands for creating and updating user-provided service instances (cups). Once created, user-provided service instances can be bound to an application. To interact with the Cloud Foundry instance, the command line interface, cf CLI is used.

Procedure

  1. Log into your Cloud Foundry environment using the cf CLI.
  2. Using the cf CLI, execute
    cf cups service instance -p "url,username,password"

    For example,

    cf cups postgres -p "url,username,password"
    
  3. When prompted, specify values appropriate for your environment.
    For example,
    url> postgresql://191.181.20.101:5432/postgres 
    username>bwuser
    password>#!bO9Uc21Q4c6B7zaku2zx3rnzv8ImCxGddcVgi68ymo0=