alicloud_cs_cluster_credential

This data source provides Container Service cluster credential on Alibaba Cloud.

Example Usage

# Declare the data source
data "alicloud_cs_managed_kubernetes_clusters" "k8s" {
  name_regex     = "my-cluster"
  enable_details = false
}

data "alicloud_cs_cluster_credential" "auth" {
  for_each                   = toset(data.alicloud_cs_managed_kubernetes_clusters.k8s.ids)
  cluster_id                 = each.key
  temporary_duration_minutes = 60
  output_file                = "my-auth-json"
}

Argument Reference

The following arguments are supported:

Attributes Reference

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