-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars.tf
88 lines (71 loc) · 2.17 KB
/
vars.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
variable "name" {
description = "Service name"
}
variable "cluster" {
description = "Cluster name"
}
variable "task_definition" {
description = "The family, family:revision or ARN of an ECS task definition"
}
variable "vpc_default" {
description = "Use the default VPC for optional features (e.g. service discovery)"
default = true
}
variable "vpc_tags" {
type = map(any)
description = "Lookup tags to identify VPC for optional features (e.g. service discovery)"
default = {}
}
variable "security_groups" {
description = "A list of security group ids applied to the service"
default = []
}
variable "load_balancer" {
description = "Name of a load balancer used to route traffic to the service"
default = null
}
variable "load_balancer_arn" {
description = "ARN of load balancer used to route traffic to the service"
default = null
}
variable "load_balancer_port" {
description = "Port of load balancer used to route traffic to the service"
default = 443
}
variable "target_container" {
description = "Name of the target container for traffic from the specified load balancer"
default = null
}
variable "target_port" {
description = "Port of the target container for traffic from the specified load balancer"
default = 80
}
variable "hosts" {
description = "A list of request host headers used to route traffic to the service (required if load balancer is specified)"
type = list(string)
default = []
}
variable "paths" {
description = "A list of request paths used to route traffic to the service"
type = list(string)
default = []
}
variable "code_deploy_enabled" {
description = "Use CodeDeploy to manage service deployment"
default = false
}
variable "servicediscovery_enabled" {
description = "Create service discovery private zone for the cluster"
default = false
}
variable "namespace_id" {
description = "Service Discovery namespace"
default = null
}
variable "apigateway_enabled" {
description = "Create an API Gateway endpoint for the cluster"
default = false
}
locals {
lb_count = var.load_balancer != null || var.load_balancer_arn != null ? 1 : 0
}