Skip to Content

How to create an User Provided Service from the MTA.yaml (Cloud Foundry)?

I am following the SAP Help (https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/37eedfdf814d4845ad784334d7ad6f8e.html)for the MTA.yaml and create a User Provided Service based on that like:

name: service-cf-test
    type: org.cloudfoundry.user-provided-service
    parameters:
      config:
        host: 'testhost.com'

Then I refer to it from the NodeJS module and deploy. So far so good.

But in the deployment from the Web IDE I get the following error:

15:30:47 (Provision) Creating a service instance for the 'service-cf-test' resource type is currently not supported.

And eventually the run fails, because it can't bind the NodeJS module to the User Provided Service as it hasn't been created.

Am I missing something or is this temporarily not supported from the MTA.yaml / Web IDE?

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jul 22, 2020 at 07:29 PM

    In case you are still looking....

    This one works for me...

      - name: riz-inno-db-test-custom # Resource for the user provided service
        type: org.cloudfoundry.user-provided-service
        parameters:  
          path: ./custom/cf-custom.json
    

    and the json file would look like this

    {
        "desc": "A sample format for credentials",
        "user": "myDBUser",
        "password": "myDBPassword"
    }
    
    
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 19, 2019 at 03:49 PM

    Please try this:

      - name: service-cf-test
        properties:
          url: 'https://testhost.com:<port>'
    
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 19, 2019 at 04:25 PM

    I agree with Gregor that port is required to bind the service. I suggest following to try:

    name: service-cf-test
        type: org.cloudfoundry.user-provided-service
        parameters:
          config:
            host:'testhost.com'
            port: '<port>'
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.