VMware GemFire

 View Only

 Is there an equivalent for "cf bind-service -c " in manifest.yml ?

Sebastien FOUCAULT's profile image
Sebastien FOUCAULT posted Aug 30, 2019 04:10 PM

Is there any way to configure the binding between a CF app and a CF service in a deployment based on a manifest file, similarly to what can be done with the "-c" option of the "cf bind-service" command of the CF CLI ? 

 

I know how to declare a service in a manifest file, but I am not aware about any option allowing to specify a configuration file for binding options.

 

Daniel Mikusa's profile image
Daniel Mikusa

Sorry, but no. It's possible as of writing this. You can only put the service name to bind in the manifest.

 

https://docs.cloudfoundry.org/devguide/deploy-apps/manifest-attributes.html#services-block

 

If you need to bind with options, you must use `cf bind-service`. If you have to do it a lot, the best thing is to wrap the interaction in a script.

 

Hope that helps!