cf-mta-examples icon indicating copy to clipboard operation
cf-mta-examples copied to clipboard

Destinations

Open ddonchev opened this issue 5 years ago • 4 comments

ddonchev avatar Jun 12 '20 23:06 ddonchev

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 04 '20 18:09 CLAassistant

Hi Dido, I am trying this scenario atm and getting an error: [destination-content-deployer] [ERROR] Missing mandatory service instance [backend] required by destination [backend]

We are going to see the created destination in the cockpit after successful deployment, right?

I could create an issue but since this is a PR I thougth writing here would be fine also

my mta.yaml is this:

## Generated mta.yaml based on template version 0.4.0
## appName = sdm-related-situations
## language=nodejs; multiTenant=true
## approuter=
_schema-version: '3.1'
ID: app2app-call-example
version: 1.0.0
description: "A simple CAP project."
parameters:
  enable-parallel-deployments: true
   
build-parameters:
  before-all:
   - builder: custom
     commands:
      - npm install --production

modules:

- name: destination-content-deployer
  type: com.sap.application.content
  build-parameters:
    no-source: true
  parameters:
    content: #whole content structure moved up to the module's parameters (was in the destinations')
      subaccount:
        destinations:
        - Name: backend
          URL: ~{backend-url/url}  #from here, properties from different requires dependencies can be references - via ~{fully-qualified/references}
          forwardAuthToken: true
          ServiceInstanceName: "backend"
  requires:
  - name: destination-service
    parameters:
      content-target: true
      # content: # Inlinte content can not be defined as this any more!
      #   subaccount:
      #     destinations:
      #     - Name: backend
      #       URL: https://abc.d  #because such values would have to be hard-coded
      #       forwardAuthToken: true
      #       ServiceInstanceName: "backend"
  - name: backend-url   

- name: backend
  type: nodejs
  path: App2
  parameters:
    disk-quota: 128M
    memory: 128M
  provides:
  - name: backend-url
    properties:
      url: ${default-url}

resources:
- name: destination-service
  type: org.cloudfoundry.managed-service
  parameters:
    service: destination
    service-name: destination-service
    service-plan: lite

meakgoz avatar Apr 15 '21 09:04 meakgoz

Hi @meakgoz , Do you deploy your mta using partial deploy feature?

theghost5800 avatar Apr 19 '21 11:04 theghost5800

Hi Kristian,

tbh I don't even know what is partial deploy feature. Shall I be using this feature then? Could you tell me what it is, and how can I check if I use it or not?

meakgoz avatar Apr 20 '21 05:04 meakgoz