BTP Cloud Foundry Part 2: Deploying with Manifests and Multitarget Applications
Preview · a free account unlocks the full lesson
Deploy repeatably: manifest. yml for single apps (memory, instances, routes, services), multitarget applications (MTA) with mta. yaml describing modules and resources, building an . mtar with the MTA build tool and deploying with cf deploy — including resource creation and dependencies.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Part 1 covered the basics of Cloud Foundry; this lesson covers deploying repeatably with manifests and multitarget applications. A manifest.yml file defines app-level settings — memory, number of instances, routes, bound services — that cf push uses when deploying.
MTAs go a step further, describing several modules together, such as an app router, various services and a UI, along with resources like XSUAA, a HANA HDI container or a destination, all defined in a single mta.yaml file.
Running mbt build turns that definition into an .mtar archive, and cf deploy then creates or updates the resources and modules it describes, in the correct dependency order. MTAs are the standard packaging format for CAP and other SAP applications, and they integrate directly with transport management for moving content between environments.
The risk to avoid is creating services manually outside of the MTA definition, since that leads to drift between what the MTA describes and what's actually running in each environment. Extension descriptor files, with an .mtaext extension, are the right way to handle environment-specific values, rather than editing mta.yaml directly for each landscape stage.
Manually deploying different versions of mta.yaml by hand in each subaccount breaks the reproducibility that MTAs are meant to provide in the first place. The cf deploy command itself, through the MultiApps CLI plugin, also supports a blue-green deployment option.
In practice, this means writing a small mta.yaml containing an app module and an XSUAA resource, building it with mbt, and deploying it with cf deploy while checking the resulting resources — the goal being that a redeploy updates everything without any manual steps.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Interview questions on this topic
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.