Applications can bind to services such as databases, messaging, and key-value stores.
Applications are deployed into App Spaces. An application can only bind to services instances that exist in the target App Space before the application is deployed.
The services
block consists of a heading, then one or more service instance names.
Whoever creates the service chooses the service instance names. These names can convey logical information, as in backend_queue
, describe the nature of the service, as in mysql_5.x
, or do neither, as in the example below.
--- ... services: - instance_ABC - instance_XYZ
Binding to a service instance is a special case of setting an environment
variable, namely VCAP_SERVICES
.