| page_title | stackit_logs_instance Resource - stackit |
|---|---|
| subcategory | |
| description | Logs instance resource schema. Uses the default_region specified in the provider configuration as a fallback in case no region is defined on resource level. |
Logs instance resource schema. Uses the default_region specified in the provider configuration as a fallback in case no region is defined on resource level.
resource "stackit_logs_instance" "logs" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
region = "eu01"
display_name = "logs-instance-example"
retention_days = 30
}
resource "stackit_logs_instance" "logs2" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
region = "eu01"
display_name = "logs-instance-example"
retention_days = 30
acl = [
"0.0.0.0/0"
]
description = "Example description"
}
# Only use the import statement, if you want to import an existing logs instance
import {
to = stackit_logs_instance.import-example
id = "${var.project_id},${var.region},${var.logs_instance_id}"
}display_name(String) The displayed name of the Logs instanceproject_id(String) STACKIT project ID associated with the Logs instanceretention_days(Number) The log retention time in days
acl(List of String) The access control list entries for the Logs instancedescription(String) The description of the Logs instanceregion(String) STACKIT region name the resource is located in. If not defined, the provider region is used.
created(String) The date and time the creation of the Logs instance was initiateddatasource_url(String) Logs instance datasource URL, can be used in Grafana as datasource URLid(String) Terraform's internal resource identifier. It is structured as "project_id,region,instance_id".ingest_otlp_url(String) The Logs instance's ingest logs via OTLP URLingest_url(String) The logs instance's ingest logs URLinstance_id(String) The Logs instance IDquery_range_url(String) The Logs instance's query range URLquery_url(String) The Logs instance's query URLstatus(String) The status of the Logs instance, possible values: Possible values are:active,deleting,reconciling.