generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
200 lines (163 loc) · 5.35 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
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = "app"
description = "Name (e.g. `app` or `cluster`)."
}
variable "environment" {
type = string
default = "app-test"
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(string)
default = ["name", "environment"]
description = "Label order, e.g. sequence of application name and environment `name`,`environment`,'attribute' [`webserver`,`qa`,`devops`,`public`,] ."
}
variable "managedby" {
type = string
default = "CloudDrove"
description = "ManagedBy, eg ''."
}
variable "resource_group_name" {
type = string
default = null
description = "A container that holds related resources for an Azure solution"
}
variable "location" {
type = string
default = "Canada Central"
description = "A location the resources"
}
variable "public_ip_allocation_method" {
type = string
default = "Static"
description = "Defines the allocation method for this IP address. Possible values are Static or Dynamic"
}
variable "public_ip_sku" {
type = string
default = "Standard"
description = "The SKU of the Public IP. Accepted values are Basic and Standard. Defaults to Basic"
}
variable "enable_copy_paste" {
type = bool
default = true
description = "Is Copy/Paste feature enabled for the Bastion Host?"
}
variable "enable_file_copy" {
type = bool
default = false
description = "Is File Copy feature enabled for the Bastion Host. Only supported whne `sku` is `Standard`"
}
variable "bastion_host_sku" {
type = string
default = "Basic"
description = "The SKU of the Bastion Host. Accepted values are `Basic` and `Standard`"
}
variable "enable_ip_connect" {
type = bool
default = false
description = "Is IP Connect feature enabled for the Bastion Host?"
}
variable "scale_units" {
type = number
default = 2
description = "The number of scale units with which to provision the Bastion Host. Possible values are between `2` and `50`. `scale_units` only can be changed when `sku` is `Standard`. `scale_units` is always `2` when `sku` is `Basic`."
}
variable "enable_shareable_link" {
type = bool
default = false
description = "Is Shareable Link feature enabled for the Bastion Host. Only supported whne `sku` is `Standard`"
}
variable "enable_tunneling" {
type = bool
default = false
description = "Is Tunneling feature enabled for the Bastion Host. Only supported whne `sku` is `Standard`"
}
variable "enabled" {
type = bool
default = true
description = "Set to false to prevent the module from creating any resources."
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-azure-bastion.git"
description = "Terraform current module repo"
}
variable "ddos_protection_mode" {
type = string
default = "VirtualNetworkInherited"
description = "The DDoS protection mode of the public IP"
}
variable "ddos_protection_plan_id" {
type = string
default = null
description = "The ID of the DDoS protection plan associated with the Public IP"
}
variable "zone" {
type = string
default = null
description = "The Zone for the resources (e.g., `1`, `2`, `3`)."
}
variable "domain_name_label" {
type = string
default = null
description = "The domain name label for the Azure Bastion Service host. Leave empty for no label."
}
variable "subnet_id" {
type = string
default = null
description = "The ID of the Subnet where this Network Interface should be located in."
}
## enable diagnostic setting
variable "log_analytics_destination_type" {
type = string
default = "AzureDiagnostics"
description = "Possible values are AzureDiagnostics and Dedicated, default to AzureDiagnostics. When set to Dedicated, logs sent to a Log Analytics workspace will go into resource specific tables, instead of the legacy AzureDiagnostics table."
}
variable "diagnostic_setting_enable" {
type = bool
default = true
}
variable "log_analytics_workspace_id" {
type = string
default = null
}
variable "log_enabled" {
type = string
default = true
description = " Is this Diagnostic Log enabled? Defaults to true."
}
variable "storage_account_id" {
type = string
default = null
description = "The ID of the Storage Account where logs should be sent."
}
variable "eventhub_name" {
type = string
default = null
description = "Specifies the name of the Event Hub where Diagnostics Data should be sent."
}
variable "eventhub_authorization_rule_id" {
type = string
default = null
description = "Specifies the ID of an vent Hub Namespace Authorization Rule used to send Diagnostics Data."
}
variable "metric_enabled" {
type = bool
default = true
description = "Is this Diagnostic Metric enabled? Defaults to True."
}
variable "pip_logs" {
type = object({
enabled = bool
category = optional(list(string))
category_group = optional(list(string))
})
default = {
enabled = true
category_group = ["AllLogs"]
description = "Is this Diagnostic logs enabled? Defaults to True."
}
}