forked from claranet/terraform-azurerm-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
125 lines (103 loc) · 3.36 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
variable "location" {
description = "Azure region in which instance will be hosted"
type = string
}
variable "location_short" {
description = "Azure region trigram"
type = string
}
variable "environment" {
description = "Name of the application's environnement"
type = string
}
variable "stack" {
description = "Name of the application stack"
type = string
}
variable "client_name" {
description = "Name of the client"
type = string
}
variable "resource_group_name" {
description = "Name of the application ressource group, herited from infra module"
type = string
}
variable "capacity" {
description = "Redis size: (Basic/Standard: 1,2,3,4,5,6) (Premium: 1,2,3,4) 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 https://www.terraform.io/docs/providers/azurerm/r/redis_cache.html#redis_configuration for full reference."
type = map(string)
default = {}
}
variable "authorized_cidrs" {
description = "Map of authorized cidrs"
type = map(string)
}
variable "allow_non_ssl_connections" {
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 "private_static_ip_address" {
description = "The Static IP Address to assign to the Redis Cache when hosted inside the Virtual Network. Changing this forces a new resource to be created."
type = string
default = null
}
variable "subnet_id" {
description = "The ID of the Subnet within which the Redis Cache should be deployed. Changing this forces a new resource to be created."
type = string
default = null
}
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 values are 4 or 6"
type = number
default = 4
}
variable "zones" {
description = "A list of a one or more Availability Zones, where the Redis Cache should be allocated."
default = null
type = list(number)
}