-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvariables.tf
More file actions
61 lines (50 loc) · 1.81 KB
/
variables.tf
File metadata and controls
61 lines (50 loc) · 1.81 KB
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
# variables.tf
# This file defines the input variables used in the Terraform configuration.
variable "resource_group_name" {
description = "The name of the Azure Resource Group to create and deploy the Data Factory into."
type = string
validation {
condition = length(trimspace(var.resource_group_name)) > 0
error_message = "resource_group_name must not be empty."
}
}
variable "location" {
description = "The Azure region where the Resource Group and Data Factory will be created."
type = string
validation {
condition = length(trimspace(var.location)) > 0
error_message = "location must not be empty."
}
}
variable "data_factory_name" {
description = "The base name of the Azure Data Factory instance. If append_random_suffix is true, the final name will be '<base>-<suffix>'."
type = string
validation {
condition = length(trimspace(var.data_factory_name)) > 0
error_message = "data_factory_name must not be empty."
}
}
variable "append_random_suffix" {
description = "Whether to append a random suffix to the Data Factory name to avoid global name collisions."
type = bool
default = true
}
variable "random_suffix_length" {
description = "Length of the random suffix appended to the Data Factory name when append_random_suffix is true."
type = number
default = 6
validation {
condition = var.random_suffix_length >= 4 && var.random_suffix_length <= 16
error_message = "random_suffix_length must be between 4 and 16."
}
}
variable "public_network_enabled" {
description = "Whether public network access is enabled for the Data Factory."
type = bool
default = true
}
variable "tags" {
description = "A map of tags to assign to the resources."
type = map(string)
default = {}
}