-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
executable file
·190 lines (151 loc) · 3.52 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
variable "aws_region" {
description = "The AWS region to create things in."
default = "us-west-2"
}
variable "vpc_cidr" {
default = "10.0.0.0/16"
}
variable "az_count" {
description = "Number of AZs to cover in a given AWS region"
default = "3"
}
variable "asg_name" {
default = "wp-app"
}
variable "ecs_instsg" {
default = "ecs-instsg"
}
variable "key_name" {
description = "Name of AWS ec2-key pair"
}
variable "instance_type" {
default = "t2.micro"
description = "AWS instance type"
}
variable "scaleup_name" {
description = "ASG scaleup group name"
default = "scaleup"
}
variable "scaledown_name" {
description = "ASG scale down group name"
default = "scaledown"
}
variable "mem_high" {
description = "High memory cloudwatch metric alarm"
default = "memoryreservation-high"
}
variable "mem_low" {
description = "Low memory cloudwatch metric alarm"
default = "memoryreservation-low"
}
variable "metric_name" {
description = "Cloud watch metric name space for scaling ASG"
default = "MemoryReservation"
}
variable "asg_min" {
description = "Min numbers of servers in ASG"
default = "1"
}
variable "asg_max" {
description = "Max numbers of servers in ASG"
default = "2"
}
variable "asg_desired" {
description = "Desired numbers of servers in ASG"
default = "1"
}
variable "alb_healthy_threshold" {
description = "ALB healthy threshold"
default = "2"
}
variable "alb_interval" {
description = "ALB healthy threshold interval"
default = "15"
}
variable "alb_timeout" {
description = "ALB timeout"
default = "10"
}
variable "unhealthy_threshold" {
description = "ALB unhealthy threshold"
default = "5"
}
variable "ecs_role" {
description = "ecs role"
default = "wp_ecs_role"
}
variable "ecs_policy" {
description = "ecs_policy"
default = "wp_ecs_policy"
}
variable "ecs_profile" {
description = "ecs_profile"
default = "wpinst_profile"
}
variable "instance_role" {
description = "Iam role name"
default = "wp_instance_role"
}
variable "ecs_instance_role" {
description = "ecs instance role"
default = "wp_instance_role"
}
variable "num_container" {
description = "Desired Number of container"
default = "2"
}
variable "ecs_max_capacity" {
description = "Max Number of container in cluster"
default = "2"
}
variable "ecs_min_capacity" {
description = "Min Number of container in cluster"
default = "1"
}
variable "ecs_cluster_name" {
default = "wp_app"
}
variable "container" {
description = "Container name"
default = "wp_app"
}
variable "deployment_minimum_healthy_percent" {
description = "deployment_minimum_healthy_percent"
default = "50"
}
variable "deployment_maximum_percent" {
description = "deployment_maximum_percent"
default = "100"
}
variable "db_instance_type" {
description = "Instance type"
default = "db.t2.micro"
}
variable "instance_name" {
description = "Instance name"
default = "wpapp"
}
variable "db_name" {
description = "Database name"
default = "wpapp"
}
variable "db_user" {
description = "Database User"
default = "wpapp"
}
variable "db_pass" {}
variable "db_port" {
description = "Database port"
default = "3306"
}
variable "container_port" {
default = "80"
}
variable "group_app" {
description = "Cloud watch log group for app"
default = "ecs-group/awp-app"
}
variable "group_ecs" {
description = "Cloud watch log group for ecs"
default = "ecs-group/ecs-agent"
}