Spring Cloud Stream on Cloud Foundry : Binding a RabbitMq source to a Stream application
<p>I have a simple need to deploy a Stream application to our internal cloud foundry instance. The stream has a <a href="https://github.com/spring-cloud/spring-cloud-stream-app-starters/tree/master/rabbit/spring-cloud-starter-stream-source-rabbit" rel="nofollow noreferrer">RabbitMq queue as the source</a> of messages for it, and is defined as below for running it locally on PC:</p>

<p><code>stream create myMessageStream --definition "rabbit --rabbit.queues=cloud-stream-source --rabbit.requeue=true --spring.rabbitmq.host=localhost --spring.rabbitmq.port=5672 --spring.cloud.stream.bindings.output.contentType='text/plain' | task-processor --uri=maven://...</code></p>

<p>The application works smooth on PC but in an attempt to set it up on our PaaS platform on PCF, I am unsure how to define the source for the stream.</p>

<p>The RabbitMq service is created on PaaS and just needs binding with stream to make it happen but I lack visibility on how to do it.</p>

<p>I'm following steps to do it for Cloud Foundry from <a href="http://docs.spring.io/spring-cloud-dataflow-server-cloudfoundry/docs/current-SNAPSHOT/reference/htmlsingle/#_running_the_server_app_locally" rel="nofollow noreferrer">Spring Docs on SCDF</a> but stuck at this stage. </p>

<p>Please share if you know how to do it.</p>