Enable Service Instance Sharing
search cancel

Enable Service Instance Sharing

book

Article ID: 297090

calendar_today

Updated On:

Products

Cloud Services Products

Issue/Introduction

Service instances can be shared across spaces and orgs. This functionality enables applications running in different spaces and orgs to use the same service instance. 

Service brokers must explicitly enable service instance sharing by setting a flag in their service-level metadata object. However, there isn't a way to configure this via Service Broker tiles.

Environment

Product Version: Other

Resolution

The "shareable" flag must be set to true in the service-level metadata to enable service instance sharing. If the flag is set to false or is absent, sharing is disabled.
 
~ CF_TRACE=true cf m -e csb-aws-s3-bucket | grep -C 5 shareable

"guid": "6348508f-d7d6-4029-b136-1a95b4170639"
}
}
},
"requires": null,
"shareable": false,
"tags": [
"aws",
"s3"
],
"updated_at": "2023-05-15T17:20:17Z"
In order to enable service instance sharing you'll need to:
  1. set the GSB_COMPATIBILITY_ENABLE_CF_SHARING environment variable to true in the broker app
  2. restage the application
  3. update the broker in cf with the 'cf update-service-broker command'
*Note: This will also enable service instance sharing for all service offerings from the CSB broker*