cancel
Showing results for 
Search instead for 
Did you mean: 

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/b8e1953a618e47e1bd3c3a60c21... 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?

Accepted Solutions (1)

Accepted Solutions (1)

jhodel18
Active Contributor

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

Answers (1)

Answers (1)

0 Kudos

Hi Jhodel, thanks it works.