yandex_client_config (Data Source)
Written by
Updated at August 7, 2025
Get attributes used by provider to configure client connection.
Example usage
//
// Example of using Yandex Cloud client configuration
//
data "yandex_client_config" "client" {}
data "yandex_kubernetes_cluster" "kubernetes" {
name = "kubernetes"
}
provider "kubernetes" {
load_config_file = false
host = data.yandex_kubernetes_cluster.kubernetes.master.0.external_v4_endpoint
cluster_ca_certificate = data.yandex_kubernetes_cluster.kubernetes.master.0.cluster_ca_certificate
token = data.yandex_client_config.client.iam_token
}
Schema
Read-Only
cloud_id(String) The ID of the cloud that the provider is connecting to.folder_id(String) The ID of the folder in which we operate.iam_token(String, Sensitive) A short-lived token that can be used for authentication in a Kubernetes cluster.id(String) The ID of this resource.zone(String) The default availability zone.