Anda dapat menggunakan Outputs dalam templat Resource Orchestration Service (ROS) untuk menampilkan deskripsi dalam bahasa Tiongkok dan mengontrol urutan pengurutan parameter.
Contoh templat
-
Templat ROS
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: menentukan urutan pengurutan parameter output. Definisikan daftarOutputsdi bagianMetadatauntuk mengatur urutan tersebut.Label: mengatur nama tampilan dalam bahasa Inggris dan Tiongkok.
-
Templat Terraform
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) }
Contoh tampilan konsol
Setelah membuat stack, buka tab Stack Information untuk melihat nama tampilan kustom dan urutan pengurutan.
Di panel Basic Information pada tab Stack Information, parameter output diurutkan sesuai urutan kustom Anda dan menampilkan nama yang telah ditentukan. Kolom kiri menampilkan bidang seperti Status (Deploying), Status Description, Last Modified, Cost Analysis, Specifications-EN, dan ErrorData. Kolom kanan menampilkan bidang seperti Service Instance Name, Creation Time, Tags, TiDB (string koneksi mysql://), dan Grafana-EN (URL akses http://).