forked from 7Factor/terraform-ecs-http-task
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
114 lines (91 loc) · 3.57 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
109
110
111
112
113
114
// Globals
variable "vpc_id" {
description = "The id of your vpc."
}
variable "cluster_name" {
description = "The name of the cluster that we're deploying to."
}
// Load balancer configuration
variable "lb_public_subnets" {
type = list
description = "The list of subnet IDs to attach to the LB. Should be public."
}
variable "lb_security_policy" {
default = "ELBSecurityPolicy-FS-2018-06"
description = "Security policy for the load balancer. Defaults to something interesting."
}
variable "lb_cert_arn" {
description = "Certificate ARN for securing HTTPS on our load balancer. We will automagically set up a redirect from 80."
}
variable "lb_ingress_cidr" {
default = "0.0.0.0/0"
description = "CIDR to allow access to this load balancer. Allows white listing of IPs if you need that kind of thing, otherwise it just defaults to erebody."
}
variable "cluster_lb_sg_id" {
description = "The id of the ECS cluster load balancer security group."
}
// Health check (defaults to something sane)
variable "health_check_interval" {
default = 30
description = "The approximate amount of time, in seconds, between health checks of an individual target. Minimum value 5 seconds, Maximum value 300 seconds. Default 30 seconds."
}
variable "health_check_path" {
default = "/"
description = "The destination for the health check request."
}
variable "health_check_port" {
default = "traffic-port"
description = "The port to use to connect with the target. Valid values are either ports 1-65536, or traffic-port. Defaults to traffic-port."
}
variable "health_check_protocol" {
default = "HTTP"
description = "The protocol to use to connect with the target. Defaults to HTTP."
}
variable "health_check_timeout" {
default = 5
description = "The amount of time, in seconds, during which no response means a failed health check. For Application Load Balancers, the range is 2 to 60 seconds and the default is 5 seconds. "
}
variable "health_check_threshold" {
default = 3
description = "The number of consecutive health checks successes required before considering an unhealthy target healthy. Defaults to 3."
}
variable "health_check_unhealthy_threshold" {
default = 3
description = "The number of consecutive health check failures required before considering the target unhealthy ."
}
variable "health_check_matcher" {
default = "200"
description = "The HTTP codes to use when checking for a successful response from a target. You can specify multiple values (for example, '200,202') or a range of values (for example, '200-299'). "
}
// Task configuration
variable "app_name" {
description = "The name of your app. This is used in the task configuration."
}
variable "app_port" {
description = "The port you want you open on your instances. We make no assumptions here."
}
variable "cpu" {
default = 256
description = "The number of cpu units used by the task."
}
variable "memory" {
default = 256
description = "The amount (in MiB) of memory used by the task."
}
variable "container_definition" {
description = "A container definitions JSON file."
}
variable "desired_task_count" {
default = 1
description = "The desired number of tasks for the service to keep running. Defaults to one."
}
variable "service_role_arn" {
description = "The arn of the role to associate with your ecs service."
}
variable "launch_type" {
default = "EC2"
description = "The launch type for the task. We assume EC2 by default."
}
variable "task_role_arn" {
description = "The arn of the role to associate with your ecs service."
}