Updated on 2023-08-11 GMT+08:00

Introduction

This chapter introduces how to use Application Orchestration Service (AOS).

With AOS, you can deploy applications in the cloud by writing templates (declarations of resources that make up stacks) and creating stacks from the templates, as shown in Figure 1. AOS also provides application lifecycle management features, such as starting, changing, and deleting.

Figure 1 How AOS works
Table 1 How AOS works

Step

Description

1. Create a template

A template is a text file that uses AOS syntax to describe application attributes, cloud service configurations, and dependencies between applications and cloud services.

How to obtain a template:

  • Write a template from scratch: You can write a template from scratch in JSON or YAML format. Before writing a template, gain a basic understanding of AOS templates from . In addition to writing a template on the web UI, you can also write it on a local host and then upload it to AOS.

    For details on how to orchestrate and deploy resources by writing a template, see Writing a Template to Create an ECS.

    NOTICE:

    The YAML syntax does not support the Tab key. The hierarchical relationship must be aligned with an even number of spaces, such as 2, 4, 6, or 8 spaces.

For more information about templates, see Templates (Cloud-Based Automation Scripts).

2. Create a stack

A stack is a collection of applications and cloud service resources. The applications or cloud services in a stack are treated as a unit when being created or deleted.

You can create stacks from templates. After you select a template and specify stack parameters, AOS automatically sets up the resources and elements you specify in the template.

For more information about stacks, see Stack Management.