-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathresource.tf
More file actions
22 lines (20 loc) · 850 Bytes
/
resource.tf
File metadata and controls
22 lines (20 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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}"
}