|
| 1 | +variable "location" { |
| 2 | + type = string |
| 3 | + description = "Specifies the supported Azure location where the resource exists." |
| 4 | +} |
| 5 | + |
| 6 | +variable "container_instance_name" { |
| 7 | + type = string |
| 8 | + description = "Specifies the name of the Container Group." |
| 9 | +} |
| 10 | + |
| 11 | +variable "resource_group_name" { |
| 12 | + type = string |
| 13 | + description = "The name of the resource group in which to create the Container Group." |
| 14 | +} |
| 15 | + |
| 16 | +variable "tags" { |
| 17 | + type = map(string) |
| 18 | + description = "Resource tags." |
| 19 | + default = {} |
| 20 | +} |
| 21 | + |
| 22 | +variable "sku" { |
| 23 | + type = string |
| 24 | + description = "Specifies the sku of the Container Group. Possible values are Confidential, Dedicated and Standard. " |
| 25 | + default = "Standard" |
| 26 | +} |
| 27 | + |
| 28 | +variable "os_type" { |
| 29 | + type = string |
| 30 | + description = "The OS for the container group. Allowed values are Linux and Windows." |
| 31 | + default = "Linux" |
| 32 | +} |
| 33 | + |
| 34 | +variable "restart_policy" { |
| 35 | + type = string |
| 36 | + description = "Restart policy for the container group. Allowed values are Always, Never, OnFailure." |
| 37 | + default = "Never" |
| 38 | +} |
| 39 | + |
| 40 | +variable "identity_ids" { |
| 41 | + type = list(string) |
| 42 | + description = "Specifies a list of User Assigned Managed Identity IDs to be assigned to this Container Group." |
| 43 | + default = null |
| 44 | +} |
| 45 | + |
| 46 | +variable "ip_address_type" { |
| 47 | + type = string |
| 48 | + description = "Specifies the IP address type of the container. Public, Private or None." |
| 49 | + default = "Public" |
| 50 | +} |
| 51 | + |
| 52 | +variable "subnet_ids" { |
| 53 | + type = list(string) |
| 54 | + description = "The subnet resource IDs for a container group." |
| 55 | + default = [] |
| 56 | +} |
| 57 | + |
| 58 | +variable "exposed_ports_tcp" { |
| 59 | + type = set(string) |
| 60 | + description = "Set of ports to expose with TCP protocol" |
| 61 | + default = [] |
| 62 | +} |
| 63 | + |
| 64 | +variable "exposed_ports_udp" { |
| 65 | + type = set(string) |
| 66 | + description = "Set of ports to expose with UDP protocol" |
| 67 | + default = [] |
| 68 | +} |
| 69 | + |
| 70 | +variable "image_registry_credential" { |
| 71 | + type = list(object({ |
| 72 | + server = string |
| 73 | + username = string |
| 74 | + password = string |
| 75 | + })) |
| 76 | + description = "List of objects to configure connection to private registry" |
| 77 | + default = [] |
| 78 | +} |
| 79 | + |
| 80 | +variable "dns_config_nameservers" { |
| 81 | + type = list(string) |
| 82 | + description = "A list of nameservers the containers will search out to resolve requests. " |
| 83 | + default = [] |
| 84 | +} |
| 85 | + |
| 86 | +variable "containers" { |
| 87 | + type = list(object({ |
| 88 | + name = string |
| 89 | + image = string |
| 90 | + cpu = number |
| 91 | + memory = number |
| 92 | + environment_variables = optional(map(string)) |
| 93 | + commands = optional(list(string)) |
| 94 | + ports_tcp = optional(set(string), []) |
| 95 | + ports_udp = optional(set(string), []) |
| 96 | + volumes = optional(list(object({ |
| 97 | + mount_path = string |
| 98 | + name = string |
| 99 | + storage_account_name = optional(string) |
| 100 | + storage_account_key = optional(string) |
| 101 | + share_name = optional(string) |
| 102 | + })), []) |
| 103 | + })) |
| 104 | + description = "List of objects to configure containers" |
| 105 | +} |
0 commit comments