-
Notifications
You must be signed in to change notification settings - Fork 0
/
optional-task.tf
173 lines (146 loc) · 4.93 KB
/
optional-task.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
variable "task_family" {
description = "(optional) task family for task. This is effectively the name of the task, without qualification of revision"
default = null
type = string
}
variable "image_repo" {
description = "(optional) image repo. e.g. image_repo = nginx --> nginx:image_tag"
default = "nginx"
type = string
}
variable "image_tag" {
description = "(optional) tag of the image. e.g. image_tag = latest --> image_repo:latest"
default = "alpine"
type = string
}
variable "container_port" {
description = "(optional) port the container is exposing"
default = 80
type = number
}
variable "container_definitions" {
description = "(optional) JSON container definitions for task"
default = null
type = string
}
variable "container_name" {
description = "(optional) name for the container to have"
default = null
type = string
}
variable "cpu_reservation" {
description = "(optional) CPU reservation for task"
default = 256
type = number
}
variable "memory_reservation" {
description = "(optional) memory reservation for task"
default = 512
type = number
}
variable "requires_compatibilities" {
description = "(optional) capabilities that the task requires"
default = ["FARGATE"]
type = set(string)
}
variable "network_mode" {
description = "(optional) network mode for the task"
default = "awsvpc"
type = string
}
variable "ssm_path" {
description = "(optional) path to the ssm parameters you want pulled into your container during execution of the entrypoint"
default = null
type = string
}
variable "mesh_name" {
description = "(optional) the name for the App Mesh this task is associated with. If null, ignored"
default = null
type = string
}
variable "virtual_node" {
description = "(optional) the name of the virtual node associated with this task definition. Ignored if virtual_gateway set. If null, ignored"
default = null
type = string
}
variable "virtual_gateway" {
description = "(optional) the name of the virtual gateway associated with this task definition. If null, ignored"
default = null
type = string
}
variable "envoy_tag" {
description = "(optional) tag for envoy. Update periodically if using App Mesh."
default = "v1.23.1.0-prod"
type = string
}
variable "efs_mounts" {
description = "(optional) efs mount set of objects. Components should include dns_name, container_mount_point, efs_mount_point"
default = []
type = set(object({
file_system_id = string
efs_path = string
container_path = string
}))
}
variable "env_vars" {
description = "(optional) environment variables to be passed to the container. By default, only passes SSM_PATH"
default = null
type = set(map(any))
}
variable "use_xray_sidecar" {
description = "(optional) if set to null, will use the sidecar to trace the task if envoy is used, as that automatically implements tracing configs."
default = null
type = bool
}
variable "command" {
description = "(optional) command to run in the container as an array. e.g. [\"sleep\", \"10\"]. If null, does not set a command in the task definition."
default = null
type = list(string)
}
variable "entrypoint" {
description = "(optional) entrypoint to run in the container as an array. e.g. [\"sleep\", \"10\"]. If null, does not set an entrypoint in the task definition."
default = null
type = list(string)
}
variable "runtime_platform" {
description = "(optional) Runtime platform for the task. Defaults to LINUX operating system family w/ CPU architecture x86_64."
default = {
operating_system_family = "LINUX"
cpu_architecture = "X86_64"
}
type = object({
operating_system_family = optional(string, "LINUX")
cpu_architecture = optional(string, "X86_64")
})
}
variable "log_group_name" {
description = "(optional) name for the log group"
default = null
type = string
}
variable "log_group_class" {
description = "(Optional) log class of the log group. Possible values are: STANDARD or INFREQUENT_ACCESS"
default = "INFREQUENT_ACCESS"
type = string
}
variable "retention_in_days" {
description = "(optional) log retention in days"
default = 7
type = number
}
variable "awslogs_driver_mode" {
description = "(optional) awslogs driver mode. Set this to `blocking` if you would rather have an outage than lose logs."
default = "non-blocking"
type = string
}
# Clowdwatch Application Signals
variable "enable_application_signals" {
description = "(optional) if set to true, will enable CW Application Signals"
default = false
type = bool
}
variable "pythonpath" {
description = "(optional) PYTHONPATH of the application; required by the cwagent sidecar container"
type = string
default = ":"
}