Skip to content

Latest commit

 

History

History
66 lines (53 loc) · 2.44 KB

File metadata and controls

66 lines (53 loc) · 2.44 KB
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.

stackit_logs_instance (Resource)

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.

Example Usage

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}"
}

Schema

Required

  • display_name (String) The displayed name of the Logs instance
  • project_id (String) STACKIT project ID associated with the Logs instance
  • retention_days (Number) The log retention time in days

Optional

  • acl (List of String) The access control list entries for the Logs instance
  • description (String) The description of the Logs instance
  • region (String) STACKIT region name the resource is located in. If not defined, the provider region is used.

Read-Only

  • created (String) The date and time the creation of the Logs instance was initiated
  • datasource_url (String) Logs instance datasource URL, can be used in Grafana as datasource URL
  • id (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 URL
  • ingest_url (String) The logs instance's ingest logs URL
  • instance_id (String) The Logs instance ID
  • query_range_url (String) The Logs instance's query range URL
  • query_url (String) The Logs instance's query URL
  • status (String) The status of the Logs instance, possible values: Possible values are: active, deleting, reconciling.