Skip to Content

Cross-MTA Dependencies - HDB Module and Javascript module

Hi all.

I'm trying to create a Cross MTA dependency, the provider is an MTA with HDB module and the consumer is a node.js module. I'm basing on https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/b8e1953a618e47e1bd3c3a60c213226e.html and some questions that already done here. I think that mta.yaml is correct but when I try to deploy the consumer I always got a message saying that there are problems finding configurations, I've checked versions and mta-id and is ok.

Provider MTA: https://gist.github.com/isaias/6b1ad9f5980ea1a60ea793d7bedac0bf

Consumer MTA: https://gist.github.com/isaias/5c86fba58eb18a252c69aad0e907aedf

The Consumer will be deployed on the same organization and space. Could I missing some detail on it?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 17, 2020 at 04:40 PM

    Try this:

    ID: com.mta.DatabaseProvider
    _schema-version: "3.1"
    version: 0.0.1
    modules:
      - name: DatabaseProvider-db
        type: hdb
        path: db
        parameters:
          memory: 256M
          disk-quota: 512M
        requires:
          - name: DatabaseProvider-db-hdi-container
    resources:
      - name: DatabaseProvider-db-hdi-container
        type: com.sap.xs.hdi-container
        properties:
          hdi-container-name: ${service-name}
    ID: DatabaseConsumer
    _schema-version: "3.1"
    version: 0.0.1
    modules:
      - name: DatabaseConsumer-srv
        type: nodejs
        path: srv
        parameters:
          memory: 512M
          disk-quota: 512M
        provides:
          - name: srv_api
            properties:
              url: ${default-url}
        requires:
          - name: DatabaseProvider-db-hdi-container
    resources:
      - name: DatabaseProvider-db-hdi-container
        type: org.cloudfoundry.existing-service
    
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 17, 2020 at 08:21 PM

    Hi Jhodel, thanks it works.

    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.