Spring Cloud Services supports Cloud Foundry service instance sharing. Here you will find instructions for sharing and unsharing a Spring Cloud Services service instance across orgs and spaces.
To share an existing Spring Cloud Services service instance, run the cf share-service
command. Provide the service instance name, the space with which to share the service instance, and the org with which to share the service instance (if the space is not in the currently-targeted org).
To share a Config Server service instance named my-config-server
with the john
space in the current org, run:
$ cf share-service my-config-server -s john
To share a Config Server service instance named my-config-server
with the charles
space in the development
org, run:
$ cf share-service my-config-server -o development -s charles
To unshare a Spring Cloud Services service instance from a space with which it has been shared, run the cf unshare-service
command. Provide the service instance name, the space with which the service instance should no longer be shared, and the org of that space (if different from the current org).
To stop sharing a Config Server service instance named my-config-server
with the john
space in the current org, run:
$ cf unshare-service my-config-server -s john
To stop sharing a Config Server service instance named my-config-server
with the charles
space in the development
org, run:
$ cf unshare-service my-config-server -o development -s charles
For more information about service instance sharing, see Sharing Service Instances in the Cloud Foundry documentation.