New Feature: Sharing Service Instances
The ability to self-provision service instances and easily bind them to applications is one of the most powerful features of the cloud.gov platform. With two simple commands, developers can instantiate new service instances and connect them to an application, delivering the credentials the application needs to interact with the service easily and securely.
In the past, we have heard from developers that have wanted to extend this functionality further - to allow service instances to be shared across different spaces in a cloud.gov organization. This was something that the cloud.gov platform did not support.
Until today.
Sharing is caring
We are happy to announce that service instance sharing has now been enabled on the cloud.gov platform. Here’s how it works:
- A developer uses the standard
cf create-service
command to instantiate a new service instance in a particular space. - When initially created, viewing the service details via
cf service {service_name}
will indicate that the service is not currently shared with any other spaces (see below).
- A developer can share a service instance created in one space with another space - provided that they have the Space Developer role in both spaces - by using
cf share-service {service_name} -s {other-space}
- Once the service instance is shared, viewing the service details via
cf service {service_name}
in the space it was created in will indicate which other spaces it is shared with and the number of bound apps (see below).
- Viewing the service details in the space the service was shared with indicates that this is a shared service, and the org/space the service it was shared from (see below).
Security considerations
While this new functionality provides enhanced options in how developers manage service instances, it may also raise additional security considerations. Application owners should engage their security teams and carefully consider any potential security implications for managing service instances in this way.
With service instance sharing, the cloud.gov platform provides new options for developers, allowing users to manage service instances in the way that best fits their own needs and security requirements.
The needs of our users will continue to drive new feature adoption on the cloud.gov platform. Stay tuned as more new features get rolled out in the weeks and months ahead!