generated from Infrastrukturait/terraform-module-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
235 lines (197 loc) · 5.57 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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
variable "name" {
type = string
default = ""
description = "Name of launch template to be created."
}
variable "use_name_prefix" {
type = bool
default = true
description = <<-EOT
Determines whether to use `launch_template_name`
as is or create a unique name beginning with the `launch_template_name` as the prefix.
EOT
}
variable "description" {
type = string
default = null
description = "Description of the launch template."
}
variable "ebs_optimized" {
type = bool
default = null
description = "If true, the launched EC2 instance will be EBS-optimized."
}
variable "image_id" {
type = string
default = ""
description = "The AMI from which to launch the instance."
}
variable "key_name" {
type = string
default = null
description = "The key name that should be used for the instance."
}
variable "user_data" {
type = string
default = null
description = "The Base64-encoded user data to provide when launching the instance."
}
variable "network_interfaces" {
type = list(any)
default = []
description = "Customize network interfaces to be attached at instance boot time."
}
variable "security_groups" {
type = list(string)
default = []
description = "A list of security group IDs to associate."
}
variable "instance_type" {
type = string
default = null
description = "The type of the instance. If present then `instance_requirements` cannot be present."
}
variable "instance_requirements" {
type = any
default = {}
description = <<-EOT
The attribute requirements for the type of instance.
If present then `instance_type` cannot be present.
EOT
}
variable "metadata_options" {
type = map(string)
default = {}
description = "Customize the metadata options for the instance."
}
variable "enable_monitoring" {
type = bool
default = true
description = "Enables/disables detailed monitoring."
}
variable "default_version" {
type = string
default = null
description = "Default Version of the launch template."
}
variable "update_default_version" {
type = string
default = null
description = <<-EOT
Whether to update Default Version each update.
Conflicts with `default_version`.
EOT
}
variable "disable_api_termination" {
type = bool
default = null
description = "If true, enables EC2 instance termination protection."
}
variable "disable_api_stop" {
type = bool
default = null
description = "If true, enables EC2 instance stop protection."
}
variable "instance_initiated_shutdown_behavior" {
type = string
default = "stop"
description = <<-EOT
Shutdown behavior for the instance.
Can be `stop` or `terminate`. (Default: `stop`)
EOT
}
variable "kernel_id" {
type = string
default = null
description = "The kernel ID."
}
variable "ram_disk_id" {
type = string
default = null
description = "The ID of the ram disk."
}
variable "block_device_mappings" {
type = list(any)
default = []
description = "Specify volumes to attach to the instance besides the volumes specified by the AMI."
}
variable "capacity_reservation_specification" {
type = any
default = {}
description = "Targeting for EC2 capacity reservations."
}
variable "cpu_options" {
type = map(string)
default = {}
description = "The CPU options for the instance."
}
variable "credit_specification" {
type = map(string)
default = {}
description = "Customize the credit specification of the instance."
}
variable "elastic_gpu_specifications" {
type = map(string)
default = {}
description = "The elastic GPU to attach to the instance."
}
variable "elastic_inference_accelerator" {
type = map(string)
default = {}
description = "Configuration block containing an Elastic Inference Accelerator to attach to the instance."
}
variable "enclave_options" {
type = map(string)
default = {}
description = "Enable Nitro Enclaves on launched instances."
}
variable "hibernation_options" {
type = map(string)
default = {}
description = "The hibernation options for the instance."
}
variable "instance_market_options" {
type = any
default = {}
description = "The market (purchasing) option for the instance."
}
variable "license_specifications" {
type = map(string)
default = {}
description = "A list of license specifications to associate with."
}
variable "maintenance_options" {
type = any
default = {}
description = "The maintenance options for the instance."
}
variable "placement" {
type = map(string)
default = {}
description = "The placement of the instance."
}
variable "private_dns_name_options" {
type = map(string)
default = {}
description = "The options for the instance hostname. The default values are inherited from the subnet."
}
variable "iam_instance_profile_arn" {
type = string
default = null
description = "Amazon Resource Name (ARN) of an existing IAM instance profile."
}
variable "iam_instance_profile_name" {
type = string
default = null
description = "The name of the IAM instance profile."
}
variable "tag_specifications" {
type = list(any)
default = []
description = "The tags to apply to the resources during launch."
}
variable "tags" {
type = map(string)
default = {}
description = "A map of tags to assign to resources."
}