outputs
After you create a stack using a template, all objects defined in the template will be created. To view the deployment results more intuitively, write the results in the output section of the template. Generally, common outputs include the access address+port number, application URL, and initial account password.
The outputs section is optional and defines the output parameters during stack running. Each output parameter must have a unique name.
Format of the outputs section:
<Output parameter name>: description: <Description> value: <Value>
Property |
Mandatory |
Type |
Value Constraint |
Description |
---|---|---|---|---|
Output parameter name |
Yes |
String |
The value must be 1 to 20 characters long. Only lowercase letters, digits, and hyphens (-) are allowed. |
Name of an output parameter, which must be unique. |
Description |
No |
Text string |
Text string, supporting a maximum of 255 characters |
Name of a mapping object, which must be unique. |
value |
Yes |
- |
- |
value is used to define an output value. It can be a text, string, or number. The value can be concatenated by the concat and get_attribute built-in functions, or be obtained from input parameters.
NOTE:
A parameter that begins with a hyphen (-) can be considered as an array. |
Example configuration of outputs:
outputs: ecs-eip: description: elastic IP address of the ECS value: get_attribute: - myecs - publicIps
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot