-
Notifications
You must be signed in to change notification settings - Fork 0
/
optional-task.tf
129 lines (109 loc) · 3.69 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
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 "use_cwagent_sidecar" {
description = "(optional) if set to true, will add a cwagent sidecar container"
default = false
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)
}