--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "stackit_ske_kubeconfig Resource - stackit" subcategory: "" description: |- SKE kubeconfig resource schema. Must have a region specified in the provider configuration. --- # stackit_ske_kubeconfig (Resource) SKE kubeconfig resource schema. Must have a `region` specified in the provider configuration. ## Example Usage ```terraform resource "stackit_ske_kubeconfig" "example" { project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" cluster_name = "example-cluster" refresh = true } ``` ## Schema ### Required - `cluster_name` (String) Name of the SKE cluster. - `project_id` (String) STACKIT project ID to which the cluster is associated. ### Optional - `expiration` (Number) Expiration time of the kubeconfig, in seconds. Defaults to `3600` - `refresh` (Boolean) If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place ### Read-Only - `expires_at` (String) Timestamp when the kubeconfig expires - `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`cluster_name`,`kube_config_id`". - `kube_config` (String, Sensitive) Raw short-lived admin kubeconfig. - `kube_config_id` (String) Internally generated UUID to identify a kubeconfig resource in Terraform, since the SKE API doesnt return a kubeconfig identifier