-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathvariables.tf
132 lines (113 loc) · 3.9 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
variable "create_resource_group" {
description = "Whether to create resource group and use it for all networking resources"
default = true
}
variable "resource_group_name" {
description = "A container that holds related resources for an Azure solution"
default = ""
}
variable "location" {
description = "The location/region to keep all your network resources. To get the list of all locations with table format from azure cli, run 'az account list-locations -o table'"
default = ""
}
variable "log_analytics_workspace_name" {
description = "The name of log analytics workspace name"
default = null
}
variable "redis_instance_name" {
description = "The name of the Redis instance"
default = ""
}
variable "redis_family" {
type = map(any)
description = "The SKU family/pricing group to use. Valid values are `C` (for `Basic/Standard` SKU family) and `P` (for `Premium`)"
default = {
Basic = "C"
Standard = "C"
Premium = "P"
}
}
variable "redis_server_settings" {
type = map(object({
capacity = number
sku_name = string
enable_non_ssl_port = optional(bool)
minimum_tls_version = optional(string)
private_static_ip_address = optional(string)
public_network_access_enabled = optional(string)
replicas_per_master = optional(number)
shard_count = optional(number)
zones = optional(list(string))
}))
description = "optional redis server setttings for both Premium and Standard/Basic SKU"
default = {}
}
variable "patch_schedule" {
type = object({
day_of_week = string
start_hour_utc = number
})
description = "The window for redis maintenance. The Patch Window lasts for 5 hours from the `start_hour_utc` "
default = null
}
variable "subnet_id" {
description = "The ID of the Subnet within which the Redis Cache should be deployed. Only available when using the Premium SKU"
default = null
}
variable "redis_configuration" {
type = object({
enable_authentication = optional(bool)
maxmemory_reserved = optional(number)
maxmemory_delta = optional(number)
maxmemory_policy = optional(string)
maxfragmentationmemory_reserved = optional(number)
notify_keyspace_events = optional(string)
})
description = "Configuration for the Redis instance"
default = {}
}
variable "storage_account_name" {
description = "The name of the storage account name"
default = null
}
variable "enable_data_persistence" {
description = "Enable or disbale Redis Database Backup. Only supported on Premium SKU's"
default = false
}
variable "data_persistence_backup_frequency" {
description = "The Backup Frequency in Minutes. Only supported on Premium SKU's. Possible values are: `15`, `30`, `60`, `360`, `720` and `1440`"
default = 60
}
variable "data_persistence_backup_max_snapshot_count" {
description = "The maximum number of snapshots to create as a backup. Only supported for Premium SKU's"
default = 1
}
variable "firewall_rules" {
description = "Range of IP addresses to allow firewall connections."
type = map(object({
start_ip = string
end_ip = string
}))
default = null
}
variable "enable_private_endpoint" {
description = "Manages a Private Endpoint to Azure database for Redis"
default = false
}
variable "virtual_network_name" {
description = "The name of the virtual network"
default = ""
}
variable "existing_private_dns_zone" {
description = "Name of the existing private DNS zone"
default = null
}
variable "private_subnet_address_prefix" {
description = "The name of the subnet for private endpoints"
default = null
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}