SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Consume a Shared Service Instance in Cloud Foundry

Create a reference to a shared service instance in a Cloud Foundry space and bind an application to it.

Overview

You will learn

  • ✔How to create a reference instance in a Cloud Foundry space
  • ✔How to bind an application to a reference instance
  • ✔How to use cf share-service as a CF-native alternative
Nina Hingerl N Nina Hingerl November 3, 2026
Created on November 3, 2026
Contributors

More from Nina Hingerl

See all 5 tutorials by Nina Hingerl →

Prerequisites

Steps

Intro

Step 1 Create a reference instance
—

In this step, you create a reference instance in your target Cloud Foundry space. This reference instance is a lightweight pointer to the shared source instance. Applications bind to the reference instance and receive credentials for the original.

  1. To create the reference instance, run the following command. Replace <REFERENCE_NAME> with a name for the reference instance and <SOURCE_INSTANCE_ID> with the id from Create and Share a Source Service Instance.

    Shell
    cf create-service <SERVICE_NAME> reference-instance <REFERENCE_NAME> -c '{"referenced_instance_id": "<SOURCE_INSTANCE_ID>"}'

    For example, to create a reference to a shared SAP Cloud Logging instance, run:

    Shell
    cf create-service cloud-logging reference-instance cls-reference -c '{"referenced_instance_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"}'
  2. To verify that the reference instance was created, run:

    Shell
    cf service <REFERENCE_NAME>

    The output shows the reference instance with the plan reference-instance.

Step 2 Bind an application to the reference instance
+
Step 3 Use cf share-service (CF-native alternative)
+
Step 4 Understand lifecycle behavior
+
Step 5 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Create a reference instance 2. Bind an application to the reference instance 3. Use cf share-service (CF-native alternative) 4. Understand lifecycle behavior 5. Test yourself