forked from telia-oss/terraform-aws-ecs-fargate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
108 lines (87 loc) · 3.09 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
102
103
104
105
106
107
108
# ------------------------------------------------------------------------------
# Variables
# ------------------------------------------------------------------------------
variable "name_prefix" {
description = "A prefix used for naming resources."
}
variable "vpc_id" {
description = "The VPC ID."
}
variable "private_subnet_ids" {
description = "A list of private subnets inside the VPC"
type = "list"
}
variable "cluster_id" {
description = "The Amazon Resource Name (ARN) that identifies the cluster."
}
variable "task_container_image" {
description = "The image used to start a container."
}
variable "lb_arn" {
description = "Arn for the LB for which the service should be attach to."
}
variable "desired_count" {
description = "The number of instances of the task definitions to place and keep running."
default = "1"
}
variable "task_container_assign_public_ip" {
description = "Assigned public IP to the container."
default = "false"
}
variable "task_container_port" {
description = "Port that the container exposes."
}
variable "task_container_protocol" {
description = "Protocol that the container exposes."
default = "HTTP"
}
variable "task_definition_cpu" {
description = "Amount of CPU to reserve for the task."
default = "256"
}
variable "task_definition_memory" {
description = "The soft limit (in MiB) of memory to reserve for the container."
default = "512"
}
variable "task_container_command" {
description = "The command that is passed to the container."
default = []
}
variable "task_container_environment" {
description = "The environment variables to pass to a container."
default = {}
}
variable "task_container_environment_count" {
description = "NOTE: This exists purely to calculate count in Terraform. Should equal the length of your environment map."
default = "0"
}
variable "log_retention_in_days" {
description = "Number of days the logs will be retained in CloudWatch."
default = "30"
}
variable "health_check" {
description = "A health block containing health check settings for the target group. Overrides the defaults."
type = "map"
}
variable "health_check_grace_period_seconds" {
default = "300"
description = "Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 7200. Only valid for services configured to use load balancers."
}
variable "tags" {
description = "A map of tags (key-value pairs) passed to resources."
type = "map"
default = {}
}
variable "deployment_minimum_healthy_percent" {
default = "50"
description = "The lower limit of the number of running tasks that must remain running and healthy in a service during a deployment"
}
variable "deployment_maximum_percent" {
default = "200"
description = "The upper limit of the number of running tasks that can be running in a service during a deployment"
}
variable "deployment_controller_type" {
default = "ECS"
type = "string"
description = "Type of deployment controller. Valid values: CODE_DEPLOY, ECS."
}