Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Solution library
    • Overview
    • Release notes
          • client_config

In this article:

  • Example usage
  • Schema
  • Read-Only
  1. Terraform reference
  2. Resources
  3. Client Config
  4. Data Sources
  5. client_config

yandex_client_config (Data Source)

Written by
Yandex Cloud
Updated at August 7, 2025
  • Example usage
  • Schema
    • Read-Only

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
}

SchemaSchema

Read-OnlyRead-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.

Was the article helpful?

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