-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
96 lines (80 loc) · 2.79 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
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 "sku" {
type = string
default = "standard"
description = "The SKU which should be used for this Search Service. Possible values are `basic`, `free`, `standard`, `standard2` and `standard3`."
}
variable "replica_count" {
type = number
default = 3 # 3 or more replicas for high availability of read-write workloads (queries and indexing)
description = "Instances of the search service, used primarily to load balance query operations. Each replica always hosts one copy of an index"
}
variable "partition_count" {
type = number
default = 1
description = "Provides index storage and I/O for read/write operations (for example, when rebuilding or refreshing an index)."
}
variable "semantic_search_sku" {
type = string
default = null
description = "Specifies the Semantic Search SKU which should be used for this Search Service."
}
variable "allowed_ips" {
type = list(string)
description = "List of IPs or CIDRs to allow for service access"
default = []
}
variable "public_network_access_enabled" {
type = bool
description = "Whether or not public network access is allowed for this resource."
default = true
}
variable "query_keys" {
description = "Names of the query keys to create"
type = list(string)
default = []
}
variable "authentication_failure_mode" {
description = "Specifies the response that the Search Service should return for requests that fail authentication (possible values are `null`, `http401WithBearerChallenge` or `http403`)"
type = string
default = "http401WithBearerChallenge"
validation {
condition = var.authentication_failure_mode == null || contains(["http401WithBearerChallenge", "http403"], try(var.authentication_failure_mode, ""))
error_message = "`authentication_failure_mode` variable must be either `null`, `http401WithBearerChallenge` or `http403`."
}
}
variable "ad_authentication_enabled" {
description = "Whether Azure Active Directory authentication is enabled."
type = bool
default = false
nullable = false
}
variable "local_authentication_enabled" {
description = "Whether API key authentication is enabled."
type = bool
default = true
nullable = false
}