3 variable "datacenters" {
4 description = "Specifies the list of DCs to be considered placing this task"
10 description = "Specifies the list of DCs to be considered placing this task"
15 variable "volume_source" {
16 description = "The name of the volume to request"
18 default = "persistence"
22 variable "access_key" {
23 description = "Minio access key"
28 variable "auto_promote" {
29 description = "Specifies if the job should auto-promote to the canary version"
34 variable "auto_revert" {
35 description = "Specifies if the job should auto-revert to the last stable job"
41 description = "Equal to the count of the task group allows blue/green depl."
47 description = "Specifies the CPU required to run this task in MHz"
53 description = "Minio environment variables"
58 variable "group_count" {
59 description = "Specifies the number of the task groups running under this one"
65 description = "Minio host"
71 description = "The Docker image to run"
73 default = "minio/minio:latest"
77 description = "Specifies a name for the job"
82 variable "kms_variables" {
84 use_vault_kms = string
85 vault_address = string,
86 vault_kms_approle_kv = string,
87 vault_kms_key_name = string
89 description = "Set of properties to be able to transit secrets in vault"
93 vault_kms_approle_kv = "",
94 vault_kms_key_name = ""
98 variable "max_parallel" {
99 description = "Specifies the maximum number of updates to perform in parallel"
105 description = "Specifies the memory required in MB"
111 description = "Specifies the Minio mode"
116 variable "port_base" {
117 description = "Specifies the static TCP/UDP port to allocate"
122 variable "port_console" {
123 description = "Specifies the static TCP/UDP port to allocate"
128 variable "resource_proxy" {
129 description = "Minio proxy resources"
139 condition = var.resource_proxy.cpu >= 200 && var.resource_proxy.memory >= 128
140 error_message = "Proxy resource must be at least: cpu=200, memory=128."
144 variable "service_name" {
145 description = "Specifies the name this service will be advertised in Consul"
150 variable "secret_key" {
151 description = "Minio secret key"
156 variable "upstreams" {
158 service_name = string,
161 description = "List of upstream services"
165 variable "use_canary" {
166 description = "Uses canary deployment for Minio"
171 variable "use_host_volume" {
172 description = "Use Nomad host volume feature"
177 variable "vault_secret" {
179 use_vault_provider = bool,
180 vault_kv_policy_name = string,
181 vault_kv_path = string,
182 vault_kv_field_access_key = string,
183 vault_kv_field_secret_key = string
185 description = "Set of properties to be able to fetch secret from vault"
187 use_vault_provider = false
188 vault_kv_policy_name = "kv"
189 vault_kv_path = "secret/data/minio"
190 vault_kv_field_access_key = "access_key"
191 vault_kv_field_secret_key = "secret_key"
195 variable "volume_destination" {
196 description = "Specifies where the volume should be mounted inside the task"