alicloud_ecs_hpc_clusters

更新时间:2025-04-02 00:56:45

This data source provides the Ecs Hpc Clusters of the current Alibaba Cloud user.

-> NOTE: Available in v1.116.0+.

Example Usage

Basic Usage

data "alicloud_ecs_hpc_clusters" "example" {
  ids        = ["hpc-bp1i09xxxxxxxx"]
  name_regex = "tf-testAcc"
}

output "first_ecs_hpc_cluster_id" {
  value = data.alicloud_ecs_hpc_clusters.example.clusters.0.id
}

Argument Reference

The following arguments are supported:

  • ids - (Optional, ForceNew, Computed) A list of Hpc Cluster IDs.
  • name_regex - (Optional, ForceNew) A regex string to filter results by Hpc Cluster name.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).

Argument Reference

The following attributes are exported in addition to the arguments listed above:

  • names - A list of Hpc Cluster names.
  • clusters - A list of Ecs Hpc Clusters. Each element contains the following attributes:
    • description - The description of ECS Hpc Cluster.
    • hpc_cluster_id - The ID of the Hpc Cluster.
    • id - The ID of the Hpc Cluster.
    • name - The name of ECS Hpc Cluster.

  • 本页导读 (1)
  • Example Usage
  • Argument Reference
  • Argument Reference
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等