|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "stackit_edgecloud_kubeconfig Resource - stackit" |
| 4 | +subcategory: "" |
| 5 | +description: |- |
| 6 | + Edge Cloud is in private Beta and not generally available. |
| 7 | + You can contact support if you are interested in trying it out. |
| 8 | + ~> 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. |
| 9 | +--- |
| 10 | + |
| 11 | +# stackit_edgecloud_kubeconfig (Resource) |
| 12 | + |
| 13 | +Edge Cloud is in private Beta and not generally available. |
| 14 | + You can contact support if you are interested in trying it out. |
| 15 | + |
| 16 | +~> 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. |
| 17 | + |
| 18 | +## Example Usage |
| 19 | + |
| 20 | +```terraform |
| 21 | +# the instance resource only exists here to illustrate the usage of it's attribute |
| 22 | +resource "stackit_edgecloud_instance" "this" { |
| 23 | + project_id = local.project_id |
| 24 | + display_name = "example" |
| 25 | + plan_id = var.plan_id |
| 26 | + description = "some_description" |
| 27 | +} |
| 28 | +
|
| 29 | +resource "stackit_edgecloud_kubeconfig" "by_name" { |
| 30 | + project_id = var.project_id |
| 31 | + instance_name = stackit_edgecloud_instance.this.display_name |
| 32 | + expiration = 3600 # seconds |
| 33 | +} |
| 34 | +
|
| 35 | +resource "stackit_edgecloud_kubeconfig" "by_id" { |
| 36 | + project_id = var.project_id |
| 37 | + instance_id = stackit_edgecloud_instance.this.instance_id |
| 38 | + expiration = 3600 # seconds |
| 39 | +} |
| 40 | +``` |
| 41 | + |
| 42 | +<!-- schema generated by tfplugindocs --> |
| 43 | +## Schema |
| 44 | + |
| 45 | +### Required |
| 46 | + |
| 47 | +- `project_id` (String) STACKIT project ID to which the Edge Cloud instance is associated. |
| 48 | + |
| 49 | +### Optional |
| 50 | + |
| 51 | +- `expiration` (Number) Expiration time of the kubeconfig, in seconds. Minimum is 600, Maximum is 15552000. Defaults to `3600` |
| 52 | +- `instance_id` (String) ID of the Edge Cloud instance. |
| 53 | +- `instance_name` (String) Name of the Edge Cloud instance. |
| 54 | +- `recreate_before` (Number) Number of seconds before expiration to trigger recreation of the kubeconfig at. |
| 55 | +- `region` (String) The resource region. If not defined, the provider region is used. |
| 56 | + |
| 57 | +### Read-Only |
| 58 | + |
| 59 | +- `creation_time` (String) Date-time when the kubeconfig was created |
| 60 | +- `expires_at` (String) Timestamp when the kubeconfig expires |
| 61 | +- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`region`,`instance_name` or `instance_id`,`kubeconfig_id`". |
| 62 | +- `kubeconfig` (String, Sensitive) Raw kubeconfig. |
| 63 | +- `kubeconfig_id` (String) Internally generated UUID to identify a kubeconfig resource in Terraform, since the Edge Cloud API doesn't return a kubeconfig identifier |
0 commit comments