-
Notifications
You must be signed in to change notification settings - Fork 22
/
variables.tf
101 lines (85 loc) · 2.59 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
variable "aws_region" {
type = string
description = "E.g. eu-west-1"
}
variable "command" {
type = list(any)
description = "The command to pass to the container"
default = null
}
variable "environment_variables" {
type = map(any)
default = {}
description = <<DESC
A map of environment variables. For example { RAILS_ENV = "PRODUCTION", ... }
Do not use this for secret values. Use secrets_from_arns to refer to secrets in SecretsManager instead.
DESC
}
variable "dependsOn" {
type = list(object({ containerName = string, condition = string }))
default = []
description = "See ECS Task Definition spec for dependsOn"
}
variable "healthcheck_command" {
type = list(string)
description = "App container liveness healthcheck"
default = ["/bin/bash", "-c", "curl -f http://localhost:80/healthcheck/live || exit 1"]
}
variable "image" {
type = string
default = null
}
variable "splunk_url_secret_arn" {
type = string
description = "ARN to the secret containing the URL for the Splunk instance (of the form `https://http-inputs-XXXXXXXX.splunkcloud.com:PORT`)."
default = null
}
variable "splunk_token_secret_arn" {
type = string
description = "ARN to the secret containing the HTTP Event Collector (HEC) token."
default = null
}
variable "splunk_index" {
type = string
description = "Splunk index to log events to (which HEC token must have access to write to)."
default = null
}
variable "splunk_sourcetype" {
type = string
default = null
description = "The source type of the logs being sent to Splunk i.e. `log4j`."
}
variable "name" {
type = string
default = "app"
description = "Name for the container. Must match the associated ALB."
}
variable "ports" {
type = list(any)
default = [80]
description = "The ports the application listens on. For most apps this can be left as the default (port 80)."
}
variable "secrets_from_arns" {
type = map(any)
default = {}
description = <<DESC
A map of secrets to AWS SecretsManager ARNs. For example { OAUTH_SECRET = "arn:aws:secretsmanager:eu-west-1:..." } # pragma: allowlist secret
DESC
}
variable "user" {
type = string
default = null
}
variable "log_group" {
type = string
default = null
}
variable "log_stream_prefix" {
type = string
description = "Set log_stream_prefix to an ECS Service name, if applicable. A prefix makes it easier to associate a log with a service."
default = null
}
variable "log_to_splunk" {
type = bool
default = true
}