-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
140 lines (115 loc) · 2.51 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
variable "instance_type" {
default = "t2.micro"
description = "instance type"
type = string
}
variable "monitoring" {
default = true
description = "enable monitoring"
type = bool
}
variable "security_group_ids" {
default = null
description = "security_group_ids"
type = list(string)
}
variable "subnet_id" {
default = null
description = "subnet_id"
type = string
}
variable "user_data_path" {
default = null
description = "user_data_path"
type = string
}
variable "server_name" {
default = null
description = "server_name"
type = string
}
variable "vars" {
default = {}
description = "variable for user_data"
type = map(string)
}
variable "managed_policy_arns" {
default = []
description = "additional managed policy arns"
type = list(string)
}
variable "create_eip" {
default = true
description = "creates eip"
type = bool
}
variable "ami" {
default = null
description = "custom ami id"
type = string
}
variable "instance_profile" {
default = null
description = "custom instance profile"
type = string
}
variable "user_data_replace_on_change" {
default = true
description = "recreate on user data change"
type = bool
}
variable "root_block_device" {
description = "volume config"
type = any
default = []
}
variable "create_autoscaling_group" {
description = "if create autoscaling group"
type = bool
default = false
}
variable "min_size" {
description = "min_size asg"
type = number
default = 1
}
variable "max_size" {
description = "max_size asg"
type = number
default = 1
}
variable "private_ip" {
description = "private ip"
type = string
default = null
}
variable "architecture" {
description = "architecture"
type = string
default = "x86_64"
}
variable "source_dest_check" {
description = "source_dest_check"
type = bool
default = null
}
variable "scale_up_config" {
description = "scale up config"
type = any
default = {}
}
variable "scale_down_config" {
description = "scale down config"
type = any
default = {}
}
variable "scaling_termination_policies" {
description = "termination policies"
type = list(string)
default = ["OldestInstance"]
}
variable "scaling_default_cooldown" {
description = "default cooldown"
type = number
default = 300
}