generated from Azure/terraform-azurerm-avm-template
-
Notifications
You must be signed in to change notification settings - Fork 12
/
variables.tf
89 lines (76 loc) · 2.91 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
variable "location" {
type = string
description = "Azure region where the resource should be deployed."
nullable = false
}
variable "postfix" {
type = string
description = "A postfix used to build default names if no name has been supplied for a specific resource type."
validation {
condition = length(var.postfix) <= 20
error_message = "Variable 'name' must be less than 20 characters due to container app job naming restrictions. '${var.postfix}' is ${length(var.postfix)} characters."
}
}
variable "compute_types" {
type = set(string)
default = ["azure_container_app"]
description = "The types of compute to use. Allowed values are 'azure_container_app' and 'azure_container_instance'."
validation {
condition = alltrue([for compute_type in var.compute_types : contains(["azure_container_app", "azure_container_instance"], compute_type)])
error_message = "compute_types must be a combination of 'azure_container_app' and 'azure_container_instance'"
}
}
variable "delays" {
type = object({
delay_after_container_image_build = number
})
default = {
delay_after_container_image_build = 30
}
description = "Delays (in seconds) to apply to the module operations."
}
variable "enable_telemetry" {
type = bool
default = true
description = <<DESCRIPTION
This variable controls whether or not telemetry is enabled for the module.
For more information see <https://aka.ms/avm/telemetryinfo>.
If it is set to false, then no telemetry will be collected.
DESCRIPTION
}
variable "lock" {
type = object({
kind = string
name = optional(string, null)
})
default = null
description = <<DESCRIPTION
Controls the Resource Lock configuration for this resource. The following properties can be specified:
- `kind` - (Required) The type of lock. Possible values are `\"CanNotDelete\"` and `\"ReadOnly\"`.
- `name` - (Optional) The name of the lock. If not specified, a name will be generated based on the `kind` value. Changing this forces the creation of a new resource.
DESCRIPTION
validation {
condition = var.lock != null ? contains(["CanNotDelete", "ReadOnly"], var.lock.kind) : true
error_message = "Lock kind must be either `\"CanNotDelete\"` or `\"ReadOnly\"`."
}
}
variable "resource_group_creation_enabled" {
type = bool
default = true
description = "Whether or not to create a resource group."
}
variable "resource_group_name" {
type = string
default = null
description = "The resource group where the resources will be deployed. Must be specified if `resource_group_creation_enabled == false`"
}
variable "tags" {
type = map(string)
default = null
description = "(Optional) Tags of the resource."
}
variable "use_private_networking" {
type = bool
default = true
description = "Whether or not to use private networking for the container registry."
}