generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
175 lines (149 loc) · 4.5 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
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "application" {
type = string
default = ""
description = "Application (e.g. `cd` or `clouddrove`)."
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "tags" {
type = map(any)
default = {}
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)."
}
variable "managedby" {
type = string
default = "anmol@clouddrove.com"
description = "ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'."
}
variable "label_order" {
type = list(any)
default = ["name", "environment"]
description = "Label order, e.g. `name`,`application`."
}
variable "repository" {
type = string
default = ""
description = "Terraform current module repo"
}
## Common Variables
variable "enabled" {
type = bool
default = true
description = "Flag to control the module creation."
}
variable "machine_count" {
type = number
default = 0
description = "Number of Virtual Machines to create."
}
variable "resource_group_name" {
type = string
default = ""
description = "The name of the resource group in which to create the virtual network."
}
variable "location" {
type = string
default = ""
description = "Location where resource should be created."
}
variable "create" {
type = string
default = "60m"
description = "Used when creating the Resource Group."
}
variable "update" {
type = string
default = "60m"
description = "Used when updating the Resource Group."
}
variable "read" {
type = string
default = "5m"
description = "Used when retrieving the Resource Group."
}
variable "delete" {
type = string
default = "60m"
description = "Used when deleting the Resource Group."
}
# Data Factory
variable "public_network_enabled" {
type = bool
default = false
description = "Is the Data Factory visible to the public network? Defaults to true."
}
variable "managed_virtual_network_enabled" {
type = bool
default = null
description = "Is default virtual machine enabled for data factory or not."
}
# Identity
variable "identity_type" {
description = "Specifies the type of Managed Service Identity that should be configured on this Storage Account. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned` (to enable both)."
type = string
default = "SystemAssigned"
}
variable "identity_ids" {
description = "Specifies a list of User Assigned Managed Identity IDs to be assigned to this Storage Account."
type = list(string)
default = null
}
variable "key_vault_id" {
type = string
default = null
}
variable "principal_id" {
type = list(string)
default = []
description = " The ID of the Principal (User, Group or Service Principal) to assign the Role Definition to. Changing this forces a new resource to be created."
}
variable "cmk_encryption_enabled" {
type = bool
default = false
}
variable "shared_access_key_enabled" {
type = bool
default = true
description = " Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is true."
}
# Private endpoint
variable "virtual_network_id" {
type = string
default = ""
description = "The name of the virtual network"
}
variable "subnet_id" {
type = string
default = ""
description = "The resource ID of the subnet"
}
variable "enable_private_endpoint" {
type = bool
default = false
description = "enable or disable private endpoint to storage account"
}
variable "existing_private_dns_zone" {
type = string
default = null
description = "Name of the existing private DNS zone"
}
variable "existing_private_dns_zone_resource_group_name" {
type = string
default = ""
description = "The name of the existing resource group"
}
variable "private_dns_zone_name" {
type = string
default = "privatelink.blob.core.windows.net"
description = "The name of the private dns zone name which will used to create private endpoint link."
}