Updated on 2022-02-22 GMT+08:00

What Is a TOSCA Template?

Topology and Orchestration Specification for Cloud Application (TOSCA) is an OASIS open standard that defines the interoperable description of services and applications hosted in the cloud, thereby facilitating lifecycle management across cloud service providers. Figure 1 shows the application topology model used by AOS.

Figure 1 Application topology model
Table 1 Elements and relationships in the application topology model

Element

Description

Resource

Resources, including virtual machines (VMs) and containers.

AppGroup

A group of one or more cloud applications. You can perform lifecycle management (such as deployment and upgrade) for the entire group rather than for individual cloud application. A cloud application group can be a customer product, service system, or subsystem.

Application

Cloud application running on resources. It is the smallest deployable object in the application topology model.

Note that a microservice is a type of application.

SoftwareComponent

Software component of a cloud application. Each component is packed into a software package. This element is optional and can also be an attribute of the Application element.

Service

Service on which an application depends. A service is a set of function objects.

DependsOn

Dependencies between elements, which determine the sequence in which elements will be created.

HostedOn

Relationship between applications and the resources they depend on.

ConsistsOf

Relationship of composition.

For example, AppGroup consists of applications.

ConnectsTo

Relationship between two elements.

For example, applications or resources are connected with each other.

PackageConsistsOf

Composition relationship between applications and their software components.