このトピックでは、Resource Orchestration Service (ROS) のテンプレートで出力を使用して、中国語で説明を表示し、パラメーターを特定の順序でソートする方法について説明します。
サンプルテンプレート
ROS テンプレート
パラメーター: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. // ハンドルに送信された待機条件エラー信号に関連付けられたデータを含む JSON シリアル化された辞書。 Value: Fn::GetAtt: - InvocationWaitCondition - ErrorData Metadata: ALIYUN::ROS::Interface: Outputs: - TiDB - TiDB Dashboard - Grafana - ErrorDataOutputs: パラメーターのソート順を定義します。出力Metadataセクションで を指定して、順序を定義できます。Label: 英語と中国語でパラメーターを定義します。
Terraform テンプレート
output "graph_private_ip" { description = <<EOT { "Label": "The private ip", // プライベート IP "Description": "The private ip of the graph nodes." // グラフノードのプライベート IP。 } EOT value = join("\n", module.graph-nodes.this_private_ip) }
サンプル GUI
スタックが作成された後、[スタック情報] タブで、中国語の説明とパラメーターのソート順を確認できます。