-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathvariables.maintenanceconfiguration.tf
More file actions
81 lines (74 loc) · 3.91 KB
/
variables.maintenanceconfiguration.tf
File metadata and controls
81 lines (74 loc) · 3.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
variable "maintenanceconfiguration" {
type = map(object({
enable_telemetry = optional(bool)
maintenance_window = optional(object({
duration_hours = number
not_allowed_dates = optional(list(object({
end = string
start = string
})))
schedule = object({
absolute_monthly = optional(object({
day_of_month = number
interval_months = number
}))
daily = optional(object({
interval_days = number
}))
relative_monthly = optional(object({
day_of_week = string
interval_months = number
week_index = string
}))
weekly = optional(object({
day_of_week = string
interval_weeks = number
}))
})
start_date = optional(string)
start_time = string
utc_offset = optional(string)
}))
name = string
not_allowed_time = optional(list(object({
end = optional(string)
start = optional(string)
})))
time_in_week = optional(list(object({
day = optional(string)
hour_slots = optional(list(number))
})))
}))
default = {}
description = <<DESCRIPTION
Map of instances for the submodule with the following attributes:
**time_in_week**
Time slots during the week when planned maintenance is allowed to proceed. If two array entries specify the same day of the week, the applied configuration is the union of times in both entries.
**enable_telemetry**
This variable controls whether or not telemetry is enabled for the module. For more information see https://aka.ms/avm/telemetryinfo.
**name**
The name of the resource.
**maintenance_window**
Maintenance window used to configure scheduled auto-upgrade for a Managed Cluster.
- `duration_hours` - Length of maintenance window range from 4 to 24 hours.
- `not_allowed_dates` - Date ranges on which upgrade is not allowed. 'utcOffset' applies to this field. For example, with 'utcOffset: +02:00' and 'dateSpan' being '2022-12-23' to '2023-01-03', maintenance will be blocked from '2022-12-22 22:00' to '2023-01-03 22:00' in UTC time.
- `schedule` - One and only one of the schedule types should be specified. Choose either 'daily', 'weekly', 'absoluteMonthly' or 'relativeMonthly' for your maintenance schedule.
- `absolute_monthly` - For schedules like: 'recur every month on the 15th' or 'recur every 3 months on the 20th'.
- `day_of_month` - The date of the month.
- `interval_months` - Specifies the number of months between each set of occurrences.
- `daily` - For schedules like: 'recur every day' or 'recur every 3 days'.
- `interval_days` - Specifies the number of days between each set of occurrences.
- `relative_monthly` - For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'.
- `day_of_week` - The weekday enum.
- `interval_months` - Specifies the number of months between each set of occurrences.
- `week_index` - The week index. Specifies on which week of the month the dayOfWeek applies.
- `weekly` - For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'.
- `day_of_week` - The weekday enum.
- `interval_weeks` - Specifies the number of weeks between each set of occurrences.
- `start_date` - The date the maintenance window activates. If the current date is before this date, the maintenance window is inactive and will not be used for upgrades. If not specified, the maintenance window will be active right away.
- `start_time` - The start time of the maintenance window. Accepted values are from '00:00' to '23:59'. 'utcOffset' applies to this field. For example: '02:00' with 'utcOffset: +02:00' means UTC time '00:00'.
- `utc_offset` - The UTC offset in format +/-HH:mm. For example, '+05:30' for IST and '-07:00' for PST. If not specified, the default is '+00:00'.
**not_allowed_time**
Time slots on which upgrade is not allowed.
DESCRIPTION
}