You can use Outputs in a Resource Orchestration Service (ROS) template to display descriptions in Chinese and control the sort order of parameters.
Sample templates
-
ROS template
Parameters:Outputs: TiDB: Label: TiDB Value: Fn::Sub: - mysql://${ServerAddress}:4000 - ServerAddress: Fn::GetAtt: - SlbTiDB - IpAddress TiDB Dashboard: Label: en: Specifications-EN zh-cn: Specifications-cn Value: Fn::Sub: - http://${ServerAddress}:2379 - ServerAddress: Fn::GetAtt: - ControlServerEip - EipAddress Grafana: Label: en: Grafana-EN zh-cn: Grafana-cn Value: Fn::Sub: - http://${ServerAddress}:3000 - ServerAddress: Fn::GetAtt: - ControlServerEip - EipAddress ErrorData: Description: JSON serialized dict containing data associated with wait condition error signals sent to the handle. Value: Fn::GetAtt: - InvocationWaitCondition - ErrorData Metadata: ALIYUN::ROS::Interface: Outputs: - TiDB - TiDB Dashboard - Grafana - ErrorDataOutputs: specifies the sort order of output parameters. Define theOutputslist in theMetadatasection to set the order.Label: sets display names in English and Chinese.
-
Terraform template
output "graph_private_ip" { description = <<EOT { "Label": "The private ip", "Description": "The private ip of the graph nodes." } EOT value = join("\n", module.graph-nodes.this_private_ip) }
Console display example
After you create the stack, go to the Stack Information tab to view the custom display names and sort order.
In the Basic Information panel of the Stack Information tab, the output parameters are sorted in your custom order and show their specified names. The left column shows fields such as Status (Deploying), Status Description, Last Modified, Cost Analysis, Specifications-EN, and ErrorData. The right column shows fields such as Service Instance Name, Creation Time, Tags, TiDB (the mysql:// connection string), and Grafana-EN (the http:// access URL).