-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
140 lines (117 loc) · 3.92 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
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-azure-subnet.git"
description = "Terraform current module repo"
validation {
# regex(...) fails if it cannot find a match
condition = can(regex("^https://", var.repository))
error_message = "The module-repo value must be a valid Git repo link."
}
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(any)
default = []
description = "Label order, e.g. `name`,`application`."
}
variable "attributes" {
type = list(any)
default = []
description = "Additional attributes (e.g. `1`)."
}
variable "delimiter" {
type = string
default = "-"
description = "Delimiter to be used between `organization`, `environment`, `name` and `attributes`."
}
variable "tags" {
type = map(any)
default = {}
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)."
}
variable "managedby" {
type = string
default = "hello@clouddrove.com"
description = "ManagedBy, eg 'CloudDrove'."
}
variable "enabled" {
type = bool
description = "Set to false to prevent the module from creating any resources."
default = true
}
variable "resource_group_name" {
default = ""
description = "A container that holds related resources for an Azure solution"
}
variable "location" {
type = string
default = ""
description = "Location where resource should be created."
}
variable "ampls_enabled" {
type = bool
description = "Set to false to prevent the module from creating ampls resource."
default = true
}
variable "linked_resource_ids" {
type = list(string)
default = [""]
description = "(Required) The name of the Azure Monitor Private Link Scoped Service. Changing this forces a new resource to be created."
}
variable "subnet_id" {
type = string
default = ""
description = "(Required) The ID of the Subnet from which Private IP Addresses will be allocated for this Private Endpoint. Changing this forces a new resource to be created."
}
variable "subscription_id" {
type = string
default = ""
description = "(Optional) Specifies the ID of the subscription. If this argument is omitted, the subscription ID of the current Azure Resource Manager provider is used."
}
variable "private_dns_zones_names" {
type = list(string)
default = [""]
description = "The name of the private dns zones from which private dns will be created for AMPLS"
}
variable "enable_private_endpoint" {
type = bool
default = true
description = "enable or disable private endpoint to storage account"
}
variable "azurerm_monitor_private_link_scope_id" {
type = string
default = null
description = "The id of the monitor private link scope from which private dns will be created for it"
}
variable "diff_sub" {
# To be set true when hosted DNS zone is in different subnscription.
type = bool
default = false
description = "Flag to tell whether dns zone is in different sub or not."
}
variable "alias_sub" {
# To be set when you are using a DNS zone from different subscription.
type = string
default = null
description = "Different subscription id for local provider(id of diff sub in which DNS zone is present)."
}
variable "diff_sub_resource_group_name" {
default = ""
description = "A container that holds related different subscription resources for an Azure solution"
}
variable "diff_sub_location" {
type = string
default = ""
description = "Location where different subscription resource should be created."
}