-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
138 lines (121 loc) · 3.52 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
##
# Required parameters
##
variable "resource_group_name" {
description = "Resource group name"
type = string
#default = "tlh-rgTomboloDataLakeACR"
}
variable "tags" {
description = "Tags to be applied to resources"
type = map(string)
default = {
market = "hpccsystems"
location = "eastus2"
environment = "tlh"
project = "hpccsystems"
business_unit = "hpccsystems"
product_group = "hpccsystems"
product_name = "hpccsystems"
subscription_id = "us-hpccsystems-dev"
subscription_type = ""
resource_group_type = ""
}
}
variable "names" {
description = "Names to be applied to resources"
type = map(string)
default = {
market = "hpccsystems"
location = "eastus2"
environment = "tlh"
project = "hpccsystems"
business_unit = "hpccsystems"
product_group = "hpccsystems"
product_name = "hpccsystems"
subscription_id = "us-hpccsystems-dev"
subscription_type = ""
resource_group_type = ""
}
}
variable "location" {
description = "Location for all resources"
type = string
default = "eastus2"
}
##
# Optional parameters
##
######
# Sku
######
variable "sku" {
description = "The SKU name of the container registry. Possible values are Basic, Standard and Premium"
type = string
default = "Basic"
validation {
condition = can(regex("^(Basic|Standard|Premium)$", var.sku))
error_message = "Invalid sku. Valid options are Basic, Standard and Premium."
}
}
################
# Admin Enabled
################
variable "admin_enabled" {
description = "Specifies whether the admin user is enabled."
type = bool
default = true
}
###########################
# Georeplication Locations
###########################
variable "georeplications" {
description = "A list of Azure locations where the container registry should be geo-replicated. The georeplications is only supported on new resources with the Premium SKU."
type = list(object({
location = string
tags = map(string)
}))
default = null
}
variable "acr_readers" {
description = "A map of friendly names to principal_ids to grant AcrPull permissions."
type = map(string)
default = {}
}
variable "acr_contributors" {
description = "A map of friendly names to principal_ids to grant AcrPull and AcrPush permissions."
type = map(string)
default = {}
}
variable "acr_admins" {
description = "A map of friendly names to principal_ids to grant AcrPull, AcrPush, AcrDelete and AcrImageSigner permissions."
type = map(string)
default = {}
}
variable "access_list" {
description = "Map of CIDRs for ACR access."
type = map(string)
default = {}
}
variable "service_endpoints" {
description = "Creates a virtual network rule in the subnet_id (values are virtual network subnet ids)."
type = map(string)
default = {}
}
variable "private_link" {
description = "When defined, enables private link endpoint on the ACR"
type = object({
name = string
private_service_connection_name = string
subnet_id = string
})
default = null
}
################
# Override the random suffix
################
variable "disable_unique_suffix" {
description = "Specifies whether the random 5 digit suffix should be NOT be used."
type = bool
default = false
}