-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
112 lines (97 loc) · 3.19 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
variable "location" {
type = string
description = "Specifies the supported Azure location where the resource exists."
}
variable "container_instance_name" {
type = string
description = "Specifies the name of the Container Group."
}
variable "resource_group_name" {
type = string
description = "The name of the resource group in which to create the Container Group."
}
variable "tags" {
type = map(string)
description = "Resource tags."
default = {}
}
variable "sku" {
type = string
description = "Specifies the sku of the Container Group. Possible values are Confidential, Dedicated and Standard. "
default = "Standard"
}
variable "os_type" {
type = string
description = "The OS for the container group. Allowed values are Linux and Windows."
default = "Linux"
}
variable "restart_policy" {
type = string
description = "Restart policy for the container group. Allowed values are Always, Never, OnFailure."
default = "Never"
}
variable "enable_system_assigned_identity" {
type = bool
description = "Specifies whether to enable System Assigned identity for container instance or not"
default = false
}
variable "identity_ids" {
type = list(string)
description = "Specifies a list of User Assigned Managed Identity IDs to be assigned to this Container Group."
default = null
}
variable "ip_address_type" {
type = string
description = "Specifies the IP address type of the container. Public, Private or None."
default = "Public"
}
variable "subnet_ids" {
type = list(string)
description = "The subnet resource IDs for a container group."
default = []
}
variable "exposed_ports_tcp" {
type = set(string)
description = "Set of ports to expose with TCP protocol"
default = []
}
variable "exposed_ports_udp" {
type = set(string)
description = "Set of ports to expose with UDP protocol"
default = []
}
variable "image_registry_credential" {
type = list(object({
server = string
username = optional(string)
password = optional(string)
user_assigned_identity_id = optional(string)
}))
description = "List of objects to configure connection to private registry"
default = []
}
variable "dns_config_nameservers" {
type = list(string)
description = "A list of nameservers the containers will search out to resolve requests. "
default = []
}
variable "containers" {
type = list(object({
name = string
image = string
cpu = number
memory = number
environment_variables = optional(map(string))
commands = optional(list(string))
ports_tcp = optional(set(string), [])
ports_udp = optional(set(string), [])
volumes = optional(list(object({
mount_path = string
name = string
storage_account_name = optional(string)
storage_account_key = optional(string)
share_name = optional(string)
})), [])
}))
description = "List of objects to configure containers"
}