AOS.Stack
Element Description
The AOS.Stack element is a Huawei PaaS solution deployment template. It is used to create stack resources of AOS so that AOS can orchestrate various resources. The AOS.Stack element corresponds to the solution in real scenarios. It can implement one-click deployment of the solution. After being defined, the element can be replicated in batches, helping services to be quickly deployed on the cloud.
Element Properties
Property |
Required |
Descripiton |
---|---|---|
inputs |
Yes |
Input information required by the nested stack Type: dict Value Description: Indicates the customized structure. Default: {} Value Constraint: A maximum of 60 inputs properties can be defined in a template. |
description |
No |
Stack Type: string Value Description: Supports customization. Default: '' Value Constraint: The value must be a text string and support a maximum of 1024 characters. |
failureStrategy |
No |
failure strategy Type: string Value Description: DoNothing, Rollback.Do nothing or rollback. Default: DoNothing |
deploy |
No |
Whether to deploy the application Type: boolean Value Description: Supports true and false. If this parameter is set to false, the application (including software components contained in the application and host resources required by the application) will not be deployed. Default: True |
clusterId |
No |
ID of the cluster which is associated with the SFS file system Type: HuaweiCloud.CCE.Cluster.Id Value Constraint: The value must satisfy the UUID rule and support a maximum of 64 characters. Suggestion: Enter the cluster ID. Specifically, log in to the CCE console, and choose Resource Management > Clusters. Click the target cluster, and you can obtain its cluster ID. Connect to the cluster object and use the get_reference function to automatically obtain the value. |
templateId |
Yes |
ID of the template that the created stack depends on Type: string Value Description: Enter an ID of an existing template. To obtain a template ID, go to the AOS console. Click Template Market > Public Templates. Click the target template to enter its details page. You can obtain its ID from the end of the page's URL. Value Constraint: The value must be a text string and support a maximum of 64 characters. |
Relationships Between Elements
Description |
Target |
---|---|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
DependsOn |
|
ContainedIn |
Return Value
Property |
Type |
Description |
---|---|---|
refName |
string |
Solution stack name |
refID |
string |
Solution stack ID |
Blueprint Example
tosca_definitions_version: huaweicloud_tosca_version_1_0 inputs: delpoy1: default: false type: boolean delpoy2: default: true type: boolean delpoy3: default: true type: boolean description: default: nginx stack type: string template-id1: default: 370f60c6-afc2-e08a-d1c4-fd33bd58b785 type: string template-id2: default: 753c30cf-3b3b-cd63-f7f0-1550d058eaac type: string template-id3: default: 2fdd9e05-1406-15d4-7b35-1274a036bcfb type: string images: default: 192.168.0.249:20202/op_svc_servicestage_88b899/nginx:latest type: string node_templates: stackone: type: HuaweiCloud.AOS.Stack properties: deploy: {get_input: delpoy1} description: {get_input: description} templateId: {get_input: template-id1} inputs: images: {get_input: images} requirements: - dependency: node: stacktwo stacktwo: type: HuaweiCloud.AOS.Stack properties: deploy: {get_input: delpoy2} description: {get_input: description} templateId: {get_input: template-id2} inputs: images: {get_input: images} myport: {get_attribute: [stackthree,nginx-NodePort]} requirements: - dependency: node: stackthree stackthree: type: HuaweiCloud.AOS.Stack properties: deploy: {get_input: delpoy3} description: {get_input: description} templateId: {get_input: template-id3} inputs: image: {get_input: images}
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.