-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
133 lines (111 loc) · 2.87 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
variable "aws_account_id" {
type = string
description = "AWS Account ID"
}
variable "region" {
type = string
description = "AWS Region, e.g. us-east-1"
}
variable "name" {
type = string
description = "Name of the task to define for ECS"
}
variable "image" {
type = string
description = "Name of image to run in ECS task"
}
variable "environment" {
type = string
description = "Infrastructure environment, e.g. staging or production"
default = "staging"
}
variable "stack" {
type = string
description = "Name to differentiate applications deployed in the same infrastructure environment"
default = ""
}
variable "image_tag" {
type = string
description = "Image tag to run in ECS task"
default = "latest"
}
variable "task_role_arn" {
type = string
description = "IAM role to run ECS task with"
default = null
}
variable "ecs_cluster_name" {
type = string
description = "Elastic Container Service cluster name to deploy services to"
default = ""
}
variable "public_subnets" {
type = list(string)
description = "VPC subnets to run ALB in"
default = []
}
variable "private_subnets" {
type = list(string)
description = "VPC subnets to run ECS task in"
default = []
}
variable "security_groups" {
type = list(string)
description = "VPC security groups to run ECS task in"
default = []
}
variable "container_port" {
type = string
description = "Port to expose in ECS task container"
default = "3000"
}
variable "hosted_zone_id" {
type = string
description = "Zone to create Route53 record in"
default = ""
}
variable "app_domain" {
type = string
description = "Name of A record to create in zone"
default = ""
}
variable "cert_domain" {
type = string
description = "Certificate in ACM to use"
default = ""
}
variable "minimum_capacity" {
type = number
description = "Minimum number of tasks in ECS service"
default = 0
}
variable "maximum_capacity" {
type = number
description = "Maximum number of tasks in ECS service"
default = 0
}
variable "ingress_port" {
type = string
description = "Port for ALB to listen on"
default = "443"
}
variable "ssl_policy" {
type = string
description = "Predefined security policies for HTTPS/SSL listeners"
default = "ELBSecurityPolicy-TLS-1-2-2017-01"
}
variable "ingress_cidr_blocks" {
type = list(string)
description = "CIDR blocks to allow into ALB"
default = ["0.0.0.0/0"]
}
variable "health_check_path" {
type = string
description = "Path to check target for healthiness"
default = "/"
}
variable "internal" {
description = "Bool to set load balancer to internal versus internet-facing"
type = bool
default = false
}