-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
91 lines (75 loc) · 2.29 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
variable "location" {
type = string
default = "westus"
}
variable "resource_group_name" {
type = string
}
variable "redis_subnet_id" {
type = string
description = "ID of the subnet to create redis instances in."
}
variable "worker_subnet_id" {
type = string
description = "ID of the subnet to create worker instances in."
}
variable "dns_subdomain" {
type = string
default = "script-runner"
description = "Subdomain to prefix to dns_zone_name. API will be served under this subdomain."
}
variable "dns_zone_name" {
type = string
description = "Identifier of the DNS Zone for this instance of script-runner."
}
variable "dns_zone_resource_group_name" {
type = string
description = "Name of the resource group dns_zone_name is in."
}
variable "auth_provider" {
type = string
description = "Auth provider to use for authentication/authorization. Supports 'auth0' and 'none'."
default = "auth0"
}
variable "auth0_domain" {
type = string
description = "Domain for Auth0 client used to authenticate users calling script-runner's API. Required if auth_provider is set to 'auth0'."
default = ""
}
variable "auth0_audience" {
type = string
description = "Audience for Auth0 client used to authenticate users calling script-runner's API. Required if auth_provider is set to 'auth0'."
default = ""
}
variable "auth0_client_id" {
type = string
description = "Identifier for Auth0 client used to authenticate users calling script-runner's API. Required if auth_provider is set to 'auth0'."
default = ""
}
variable "stack_name" {
type = string
default = "script-runner"
description = "Prefix for names of resources created by terraform."
}
variable "worker_count" {
type = number
default = 1
description = "Number of worker container instances to run."
}
variable "server_count" {
type = number
default = 1
description = "Number of server container instances to run."
}
variable "image" {
type = string
}
variable "image_tag" {
type = string
default = "latest"
}
variable "environment_variables" {
type = map(string)
default = {}
description = "Mapping of environment variables to add to worker containers' environments."
}