Skip to content

Commit 3f5e2d1

Browse files
committed
refactor(terraform): update data source for cluster credentials and adjust output to reflect cluster name
1 parent 81f4eae commit 3f5e2d1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ack.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ locals {
55
}
66
}
77

8-
data "alicloud_cs_kubernetes_clusters" "cluster" {
9-
ids = [for k, v in local.cluster_ids : v]
8+
data "alicloud_cs_cluster_credential" "common" {
9+
cluster_id = local.cluster_ids.common
1010
}
1111

12-
output "clusters" {
13-
value = data.alicloud_cs_kubernetes_clusters.cluster.names
12+
output "cluster_name" {
13+
value = data.alicloud_cs_cluster_credential.common.cluster_name
1414
}

0 commit comments

Comments
 (0)