Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Setting up Yandex Cloud Terraform provider authentication
  • Solution library
    • Overview
    • Release notes
          • client_config

In this article:

  • Example usage
  • Arguments & Attributes Reference
  1. Terraform reference
  2. Resources
  3. Client Config
  4. Data Sources
  5. client_config

yandex_client_config (DataSource)

Written by
Yandex Cloud
Updated at February 9, 2026
View in Markdown
  • Example usage
  • Arguments & Attributes Reference

Get attributes used by provider to configure client connection.

Example usageExample 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
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • cloud_id (Read-Only) (String). The ID of the cloud that the provider is connecting to.
  • folder_id (Read-Only) (String). The ID of the folder in which we operate.
  • iam_token (Read-Only) (String). A short-lived token that can be used for authentication in a Kubernetes cluster.
  • id (String).
  • zone (Read-Only) (String). The default availability zone.

Was the article helpful?

Previous
cm_certificate_iam_member
Next
backup_policy
© 2026 Direct Cursus Technology L.L.C.