| page_title | stackit_edgecloud_token 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. |
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.
# 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_token" "by_name" {
project_id = var.project_id
instance_name = stackit_edgecloud_instance.this.display_name
expiration = 3600 # seconds
}
resource "stackit_edgecloud_token" "by_id" {
project_id = var.project_id
instance_id = stackit_edgecloud_instance.this.instance_id
expiration = 3600 # seconds
}project_id(String) STACKIT project ID to which the Edge Cloud instance is associated.
expiration(Number) Expiration time of the token, in seconds. Minimum is 600, Maximum is 15552000. Defaults to3600instance_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 token at.region(String) The resource region. If not defined, the provider region is used.
creation_time(String) Date-time when the token was createdexpires_at(String) Timestamp when the token expiresid(String) Terraform's internal resource ID. It is structured as "project_id,region,instance_nameorinstance_id,token_id".token(String, Sensitive) Raw token.token_id(String) Internally generated UUID to identify a token resource in Terraform, since the Edge Cloud API doesnt return a token identifier