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.
For more information about service instance sharing, see Sharing Service Instances in the Cloud Foundry documentation.
Sharing a service instance
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 thejohn
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 thecharles
space in thedevelopment
org, run:$ cf share-service my-config-server -o development -s charles
Unsharing a service instance
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 thejohn
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 thecharles
space in thedevelopment
org, run:$ cf unshare-service my-config-server -o development -s charles
Content feedback and comments