Skip to content

Latest commit

 

History

History
63 lines (49 loc) · 2.7 KB

File metadata and controls

63 lines (49 loc) · 2.7 KB
page_title stackit_edgecloud_kubeconfig Resource - stackit
subcategory
description Edge Cloud is in private Beta and not generally available. You can contact support if you are interested in trying it out. ~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources.

stackit_edgecloud_kubeconfig (Resource)

Edge Cloud is in private Beta and not generally available. You can contact support if you are interested in trying it out.

~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide for how to opt-in to use beta resources.

Example Usage

# the instance resource only exists here to illustrate the usage of it's attribute
resource "stackit_edgecloud_instance" "this" {
  project_id   = local.project_id
  display_name = "example"
  plan_id      = var.plan_id
  description  = "some_description"
}

resource "stackit_edgecloud_kubeconfig" "by_name" {
  project_id    = var.project_id
  instance_name = stackit_edgecloud_instance.this.display_name
  expiration    = 3600 # seconds
}

resource "stackit_edgecloud_kubeconfig" "by_id" {
  project_id  = var.project_id
  instance_id = stackit_edgecloud_instance.this.instance_id
  expiration  = 3600 # seconds
}

Schema

Required

  • project_id (String) STACKIT project ID to which the Edge Cloud instance is associated.

Optional

  • expiration (Number) Expiration time of the kubeconfig, in seconds. Minimum is 600, Maximum is 15552000. Defaults to 3600
  • instance_id (String) ID of the Edge Cloud instance.
  • instance_name (String) Name of the Edge Cloud instance.
  • recreate_before (Number) Number of seconds before expiration to trigger recreation of the kubeconfig at.
  • region (String) The resource region. If not defined, the provider region is used.

Read-Only

  • creation_time (String) Date-time when the kubeconfig was created
  • expires_at (String) Timestamp when the kubeconfig expires
  • id (String) Terraform's internal resource ID. It is structured as "project_id,region,instance_name or instance_id,kubeconfig_id".
  • kubeconfig (String, Sensitive) Raw kubeconfig.
  • kubeconfig_id (String) Internally generated UUID to identify a kubeconfig resource in Terraform, since the Edge Cloud API doesn't return a kubeconfig identifier