-
Notifications
You must be signed in to change notification settings - Fork 57
/
variables.tf
177 lines (145 loc) · 4.68 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
variable "service_name" {
type = "string"
description = "The name of the service"
}
variable "cluster_role" {
type = "string"
default = "app"
description = "Primary role/function of the cluster"
}
variable "environment" {
type = "string"
description = "The created resources will belong to this infrastructure environment"
}
variable "application" {
type = "string"
description = "Application type that the ASG's instances will serve"
}
variable "product_domain" {
type = "string"
description = "Abbreviation of the product domain this ASG and its instances belongs to"
}
variable "description" {
type = "string"
description = "Free form description of this ASG and its instances"
}
variable "asg_vpc_zone_identifier" {
type = "list"
description = "The created ASG will spawn instances to these subnet IDs"
}
variable "asg_lb_target_group_arns" {
type = "list"
default = []
description = "The created ASG will be attached to this target group"
}
variable "asg_min_capacity" {
type = "string"
default = 1
description = "The created ASG will have this number of instances at minimum"
}
variable "asg_max_capacity" {
type = "string"
default = 5
description = "The created ASG will have this number of instances at maximum"
}
variable "asg_health_check_type" {
type = "string"
default = "ELB"
description = "Controls how ASG health checking is done"
}
variable "asg_health_check_grace_period" {
type = "string"
default = 300
description = "Time, in seconds, to wait for new instances before checking their health"
}
variable "asg_default_cooldown" {
type = "string"
default = 300
description = "Time, in seconds, the minimum interval of two scaling activities"
}
variable "asg_placement_group" {
type = "string"
default = ""
description = "The placement group for the spawned instances"
}
variable "asg_metrics_granularity" {
type = "string"
default = "1Minute"
description = "The granularity to associate with the metrics to collect"
}
variable "asg_enabled_metrics" {
type = "list"
default = [
"GroupMinSize",
"GroupMaxSize",
"GroupDesiredCapacity",
"GroupInServiceInstances",
"GroupPendingInstances",
"GroupStandbyInstances",
"GroupTerminatingInstances",
"GroupTotalInstances",
]
description = "The list of ASG metrics to collect"
}
variable "asg_service_linked_role_arn" {
type = "string"
default = ""
description = "The ARN of the service-linked role that the ASG will use to call other AWS services"
}
variable "asg_termination_policies" {
type = "list"
default = [
"Default",
]
description = "Specify policies that the auto scaling group should use to terminate its instances"
}
variable "asg_tags" {
type = "list"
default = []
description = "The created ASG (and spawned instances) will have these tags, merged over the default (see main.tf)"
}
variable "asg_wait_for_capacity_timeout" {
type = "string"
description = "A maximum duration that Terraform should wait for ASG instances to be healthy before timing out"
}
variable "asg_wait_for_elb_capacity" {
type = "string"
default = ""
description = "Terraform will wait for exactly this number of healthy instances in all attached load balancers on both create and update operations. If left to default, the value is set to asg_min_capacity"
}
variable "lc_security_groups" {
type = "list"
description = "The spawned instances will have these security groups"
}
variable "lc_instance_profile" {
type = "string"
description = "The spawned instances will have this IAM profile"
}
variable "lc_key_name" {
type = "string"
default = ""
description = "The spawned instances will have this SSH key name"
}
variable "lc_instance_type" {
type = "string"
description = "The spawned instances will have this type"
}
variable "lc_ami_id" {
type = "string"
description = "The spawned instances will have this AMI"
}
variable "lc_monitoring" {
type = "string"
default = true
description = "The spawned instances will have enhanced monitoring if enabled"
}
variable "lc_ebs_optimized" {
type = "string"
default = false
description = "The spawned instances will have EBS optimization if enabled"
}
variable "lc_user_data" {
type = "string"
default = ""
description = "The spawned instances will have this user data. Use the rendered value of a terraform's `template_cloudinit_config` data" // https://www.terraform.io/docs/providers/template/d/cloudinit_config.html#rendered
}