generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
102 lines (86 loc) · 2.56 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
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = null
description = "Name (e.g. `app` or `cluster`)."
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-azure-resource-group"
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 = null
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(string)
default = ["name", "environment", ]
description = "Label order, e.g. `name`,`application`."
}
variable "business_unit" {
type = string
default = "Corp"
description = "Top-level division of your company that owns the subscription or workload that the resource belongs to. In smaller organizations, this tag might represent a single corporate or shared top-level organizational element."
}
variable "managedby" {
type = string
default = "hello@clouddrove.com"
description = "ManagedBy, eg 'CloudDrove'."
}
variable "extra_tags" {
type = map(string)
default = null
description = "Variable to pass extra tags."
}
variable "enabled" {
type = bool
default = true
description = "Flag to control the module creation."
}
variable "location" {
type = string
default = null
description = "Location where resource should be created."
}
variable "create" {
type = string
default = "90m"
description = "Used when creating the Resource Group."
}
variable "read" {
type = string
default = "5m"
description = "Used when retrieving the Resource Group."
}
variable "update" {
type = string
default = "90m"
description = "Used when updating the Resource Group."
}
variable "delete" {
type = string
default = "90m"
description = "Used when deleting the Resource Group."
}
variable "resource_lock_enabled" {
type = bool
default = false
description = "enable or disable lock resource"
}
variable "lock_level" {
type = string
default = "CanNotDelete"
}
variable "notes" {
type = string
default = "This Resource Group is locked by terrafrom"
description = "Specifies some notes about the lock. Maximum of 512 characters. Changing this forces a new resource to be created."
}