-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
84 lines (66 loc) · 3.38 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
variable "container_name" {
description = "The name of the container. Up to 255 characters ([a-z], [A-Z], [0-9], -, _ allowed)."
}
variable "container_image" {
description = "The image used to start the container. Images in the Docker Hub registry available by default."
}
variable "container_memory" {
description = "The amount of memory (in MiB) to allow the container to use. This is a hard limit, if the container attempts to exceed the container_memory, the container is killed. This field is optional for Fargate launch type and the total amount of container_memory of all containers in a task will need to be lower than the task memory value."
default = 256
}
variable "container_memory_reservation" {
description = "The amount of memory (in MiB) to reserve for the container. If container needs to exceed this threshold, it can do so up to the set container_memory hard limit."
default = 128
}
variable "port_mappings" {
description = "The port mappings to configure for the container. This is a list of maps. Each map should contain \"containerPort\", \"hostPort\", and \"protocol\", where \"protocol\" is one of \"tcp\" or \"udp\". If using containers in a task with the awsvpc or host network mode, the hostPort can either be left blank or set to the same value as the containerPort."
default = [{
"containerPort" = 80
"hostPort" = 80
"protocol" = "tcp"
}]
}
variable "healthcheck" {
description = "A map containing command (string), interval (duration in seconds), retries (1-10, number of times to retry before marking container unhealthy, and startPeriod (0-300, optional grace period to wait, in seconds, before failed healthchecks count toward retries)"
default = {}
}
variable "container_cpu" {
description = "The number of cpu units to reserve for the container. This is optional for tasks using Fargate launch type and the total amount of container_cpu of all containers in a task will need to be lower than the task-level cpu value."
default = 256
}
variable "essential" {
description = "Determines whether all other containers in a task are stopped, if this container fails or stops for any reason. Due to how Terraform type casts booleans in json it is required to double quote this value."
default = "true"
}
variable "entrypoint" {
description = "The entry point that is passed to the container."
default = [""]
}
variable "command" {
description = "The command that is passed to the container."
default = [""]
}
variable "working_directory" {
description = "The working directory to run commands inside the container."
default = ""
}
variable "environment" {
description = "The environment variables to pas to the container. This is a list of maps."
default = []
}
variable "readonly_root_filesystem" {
description = "Determines whether a container is given read-only access to its root filesystem. Due to how Terraform type casts booleans in json it is required to double quote this value."
default = "false"
}
variable "log_driver" {
description = "The log driver to use for the container. If using Fargate launch type, only supported value is awslogs."
default = "awslogs"
}
variable "log_options" {
description = "The configuration options to send to the log_driver."
default = {
"awslogs-region" = "us-west-2"
"awslogs-group" = "default"
"awslogs-stream-prefix" = "default"
}
}