-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathvariables.tf
138 lines (119 loc) · 3.86 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
variable "create_resource_group" {
description = "Whether to create resource group and use it for all networking resources"
default = false
}
variable "resource_group_name" {
description = "A container that holds related resources for an Azure solution"
default = ""
}
variable "location" {
description = "The location/region to keep all your network resources. To get the list of all locations with table format from azure cli, run 'az account list-locations -o table'"
default = ""
}
variable "container_registry_config" {
description = "Manages an Azure Container Registry"
type = object({
name = string
admin_enabled = optional(bool)
sku = optional(string)
public_network_access_enabled = optional(bool)
quarantine_policy_enabled = optional(bool)
zone_redundancy_enabled = optional(bool)
})
}
variable "georeplications" {
description = "A list of Azure locations where the container registry should be geo-replicated"
type = list(object({
location = string
zone_redundancy_enabled = optional(bool)
}))
default = []
}
variable "network_rule_set" { # change this to match actual objects
description = "Manage network rules for Azure Container Registries"
type = object({
default_action = optional(string)
ip_rule = optional(list(object({
ip_range = string
})))
virtual_network = optional(list(object({
subnet_id = string
})))
})
default = null
}
variable "retention_policy" {
description = "Set a retention policy for untagged manifests"
type = object({
days = optional(number)
enabled = optional(bool)
})
default = null
}
variable "enable_content_trust" {
description = "Boolean value to enable or disable Content trust in Azure Container Registry"
default = false
}
variable "identity_ids" {
description = "Specifies a list of user managed identity ids to be assigned. This is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`"
default = null
}
variable "encryption" {
description = "Encrypt registry using a customer-managed key"
type = object({
key_vault_key_id = string
identity_client_id = string
})
default = null
}
variable "scope_map" {
description = "Manages an Azure Container Registry scope map. Scope Maps are a preview feature only available in Premium SKU Container registries."
type = map(object({
actions = list(string)
}))
default = null
}
variable "container_registry_webhooks" {
description = "Manages an Azure Container Registry Webhook"
type = map(object({
service_uri = string
actions = list(string)
status = optional(string)
scope = string
custom_headers = map(string)
}))
default = null
}
variable "enable_private_endpoint" {
description = "Manages a Private Endpoint to Azure Container Registry"
default = false
}
variable "virtual_network_name" {
description = "The name of the virtual network"
default = ""
}
variable "existing_private_dns_zone" {
description = "Name of the existing private DNS zone"
default = null
}
variable "private_subnet_address_prefix" {
description = "The name of the subnet for private endpoints"
default = null
}
variable "log_analytics_workspace_name" {
description = "The name of log analytics workspace name"
default = null
}
variable "storage_account_name" {
description = "The name of the hub storage account to store logs"
default = null
}
variable "acr_diag_logs" {
description = "Application Gateway Monitoring Category details for Azure Diagnostic setting"
default = ["ContainerRegistryRepositoryEvents", "ContainerRegistryLoginEvents"]
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}