Search code examples
ibm-cloudcloudant

No cloudant DB credentials for bluemix dedicated


I have created a cloudant DB in bluemix dedicated. But it didn't give me credentials. It provides me with a link to launch the admin portal, which works fine. But clearly not very useful without credentials to use with code...


Solution

  • You should bind the service to an application. Doing that you will be able to see the credentials in the VCAP_SERVICES environment variable. You can find its value within the application dashboard, clicking on "Environment Variables" on the left.

    You will also find the credentials clicking on the "Service Credentials" button that you can find on the service instance panel (again in the application dashboard).