-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathvariables.tf
134 lines (114 loc) · 4.02 KB
/
variables.tf
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
variable "location" {
description = "Azure location."
type = string
}
variable "location_short" {
description = "Short string for Azure location."
type = string
}
variable "client_name" {
description = "Client name/account used in naming."
type = string
}
variable "environment" {
description = "Project environment."
type = string
}
variable "stack" {
description = "Project stack name."
type = string
}
variable "resource_group_name" {
description = "Resource group name."
type = string
}
variable "capacity" {
description = "Redis size: (Basic/Standard: 1,2,3,4,5,6) (Premium: 1,2,3,4) [documentation](https://docs.microsoft.com/fr-fr/azure/redis-cache/cache-how-to-premium-clustering)."
type = number
default = 2
}
variable "sku_name" {
description = "Redis Cache Sku name. Can be Basic, Standard or Premium."
type = string
default = "Premium"
}
variable "cluster_shard_count" {
description = "Number of cluster shards desired."
type = number
default = 3
}
variable "redis_additional_configuration" {
description = "Additional configuration for the Redis instance. Some of the keys are set automatically. See [documentation](https://www.terraform.io/docs/providers/azurerm/r/redis_cache.html#redis_configuration) for full reference."
type = object({
aof_backup_enabled = optional(bool)
aof_storage_connection_string_0 = optional(string)
aof_storage_connection_string_1 = optional(string)
authentication_enabled = optional(bool)
active_directory_authentication_enabled = optional(bool)
maxmemory_reserved = optional(number)
maxmemory_delta = optional(number)
maxmemory_policy = optional(string)
maxfragmentationmemory_reserved = optional(number)
rdb_backup_enabled = optional(bool)
rdb_backup_frequency = optional(number)
rdb_backup_max_snapshot_count = optional(number)
rdb_storage_connection_string = optional(string)
notify_keyspace_events = optional(string)
})
default = {}
}
variable "non_ssl_port_enabled" {
description = "Activate non SSL port (6779) for Redis connection."
type = bool
default = false
}
variable "minimum_tls_version" {
description = "The minimum TLS version."
type = string
default = "1.2"
}
variable "data_persistence_enabled" {
description = "\"true\" to enable data persistence."
type = bool
default = true
}
variable "data_persistence_frequency_in_minutes" {
description = "Data persistence snapshot frequency in minutes."
type = number
default = 60
}
variable "data_persistence_max_snapshot_count" {
description = "Max number of data persistence snapshots."
type = number
default = null
}
variable "data_persistence_storage_account_tier" {
description = "Replication type for the Storage Account used for data persistence."
type = string
default = "Premium"
}
variable "data_persistence_storage_account_replication" {
description = "Replication type for the Storage Account used for data persistence."
type = string
default = "LRS"
}
variable "redis_version" {
description = "Redis version to deploy. Allowed value is only 6 for new instances since v4 deprecation."
type = number
default = 6
}
variable "zones" {
description = "A list of a one or more Availability Zones, where the Redis Cache should be allocated."
default = null
type = list(number)
}
variable "patch_schedules" {
description = "A list of Patch Schedule, Azure Cache for Redis patch schedule is used to install important software updates in specified time window."
default = []
nullable = false
type = list(object({
day_of_week = string
start_hour_utc = optional(string)
maintenance_window = optional(string)
}))
}