forked from claranet/terraform-azurerm-api-management
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
204 lines (168 loc) · 5.33 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
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 = "Name of the resource group"
type = string
}
variable "location" {
description = "Azure location for Eventhub."
type = string
}
variable "location_short" {
description = "Short string for Azure location."
type = string
}
variable "sku_name" {
type = string
description = "String consisting of two parts separated by an underscore. The fist part is the name, valid values include: Developer, Basic, Standard and Premium. The second part is the capacity"
default = "Basic_1"
}
variable "publisher_name" {
type = string
description = "The name of publisher/company."
}
variable "publisher_email" {
type = string
description = "The email of publisher/company."
}
variable "additional_location" {
type = list(map(string))
description = "List of the name of the Azure Region in which the API Management Service should be expanded to."
default = []
}
variable "certificate_configuration" {
type = list(map(string))
description = "List of certificate configurations"
default = []
}
variable "enable_http2" {
type = bool
description = "Should HTTP/2 be supported by the API Management Service?"
default = false
}
variable "management_hostname_configuration" {
type = list(map(string))
description = "List of management hostname configurations"
default = []
}
variable "scm_hostname_configuration" {
type = list(map(string))
description = "List of scm hostname configurations"
default = []
}
variable "proxy_hostname_configuration" {
type = list(map(string))
description = "List of proxy hostname configurations"
default = []
}
variable "portal_hostname_configuration" {
type = list(map(string))
description = "Legacy portal hostname configurations"
default = []
}
variable "developer_portal_hostname_configuration" {
type = list(map(string))
description = "Developer portal hostname configurations"
default = []
}
variable "notification_sender_email" {
type = string
description = "Email address from which the notification will be sent"
default = null
}
variable "policy_configuration" {
type = map(string)
description = "Map of policy configuration"
default = {}
}
variable "enable_sign_in" {
type = bool
description = "Should anonymous users be redirected to the sign in page?"
default = false
}
variable "enable_sign_up" {
type = bool
description = "Can users sign up on the development portal?"
default = false
}
variable "terms_of_service_configuration" {
type = list(map(string))
description = "Map of terms of service configuration"
default = [{
consent_required = false
enabled = false
text = ""
}]
}
variable "security_configuration" {
type = map(string)
description = "Map of security configuration"
default = {}
}
### NETWORKING
variable "virtual_network_type" {
type = string
description = "The type of virtual network you want to use, valid values include: None, External, Internal."
default = null
}
variable "virtual_network_configuration" {
type = list(string)
description = "The id(s) of the subnet(s) that will be used for the API Management. Required when virtual_network_type is External or Internal"
default = []
}
variable "nsg_name" {
type = string
description = "NSG name of the subnet hosting the APIM to add the rule to allow management if the APIM is private"
default = null
}
variable "nsg_rg_name" {
type = string
description = "Name of the RG hosting the NSG if it's different from the one hosting the APIM"
default = null
}
variable "create_management_rule" {
type = bool
description = "Whether to create the NSG rule for the management port of the APIM. If true, nsg_name variable must be set"
default = false
}
variable "management_nsg_rule_priority" {
type = number
description = "Priority of the NSG rule created for the management port of the APIM"
default = 101
}
### IDENTITY
variable "identity_type" {
description = "Type of Managed Service Identity that should be configured on this API Management Service"
type = string
default = "SystemAssigned"
}
variable "identity_ids" {
description = "A list of IDs for User Assigned Managed Identity resources to be assigned. This is required when type is set to UserAssigned or SystemAssigned, UserAssigned."
type = list(string)
default = []
}
variable "named_values" {
description = "Map containing the name of the named values as key and value as values"
type = list(map(string))
default = []
}
variable "products" {
description = "List of products to create"
type = list(string)
default = []
}
variable "create_product_group_and_relationships" {
description = "Create local APIM groups with name identical to products and create a relationship between groups and products"
type = bool
default = false
}