Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 2.36 KB

File metadata and controls

59 lines (46 loc) · 2.36 KB
page_title stackit_server_update_schedule Resource - stackit
subcategory
description Server update schedule resource schema. Must have a region specified in the provider configuration.

stackit_server_update_schedule (Resource)

Server update schedule resource schema. Must have a region specified in the provider configuration.

Example Usage

resource "stackit_server_update_schedule" "example" {
  project_id         = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  server_id          = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  name               = "example_update_schedule_name"
  rrule              = "DTSTART;TZID=Europe/Sofia:20200803T023000 RRULE:FREQ=DAILY;INTERVAL=1"
  enabled            = true
  maintenance_window = 1
  depends_on = [
    stackit_server_update_enable.enable
  ]
}

resource "stackit_server_update_enable" "enable" {
  project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  server_id  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

# Only use the import statement, if you want to import an existing server update schedule
import {
  to = stackit_server_update_schedule.import-example
  id = "${var.project_id},${var.region},${var.server_id},${var.server_update_schedule_id}"
}

Schema

Required

  • enabled (Boolean) Is the update schedule enabled or disabled.
  • maintenance_window (Number) Maintenance window [1..24]. Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart.
  • name (String) The schedule name.
  • project_id (String) STACKIT Project ID to which the server is associated.
  • rrule (String) An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates.
  • server_id (String) Server ID for the update schedule.

Optional

  • region (String) The resource region. If not defined, the provider region is used.

Read-Only

  • id (String) Terraform's internal resource identifier. It is structured as "project_id,region,server_id,update_schedule_id".
  • update_schedule_id (Number) Update schedule ID.