-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvariables.tf
More file actions
80 lines (68 loc) · 1.76 KB
/
variables.tf
File metadata and controls
80 lines (68 loc) · 1.76 KB
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
variable "ami" {
type = string
description = "AMI (Id) to use for the instance"
default = null
}
variable "detailed_monitoring" {
type = bool
description = <<-EOD
Flag for detailed monitoring. Make sure to understand cost/benefit relationship.
Check: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-detailed-monitoring.html
EOD
default = true
}
variable "instance_type" {
type = string
description = "Instance type"
default = "t3.medium"
}
variable "key_name" {
type = string
description = "Key pair name to use"
default = null
}
variable "name" {
type = string
description = "Instance name"
default = null # will be set in locals
}
variable "policies" {
type = list(string)
description = "List of IAM policy ARNs to attach to the instance"
default = []
}
variable "region" {
type = string
description = "Region where to deploy to"
default = null
}
variable "root_volume_size" {
type = number
description = "Root volume size in GB"
default = 50
}
variable "source_dest_check" {
type = bool
description = "Disable source/dest check (default true)"
default = true
}
variable "subnet_id" {
type = string
description = "Id of the subnet to create this instance in"
default = null
}
variable "user_data" {
type = string
description = "User data to pass to the instance"
default = null
}
variable "user_data_base64" {
type = string
description = "User data to pass to the instance; base64-encoded"
default = null
}
variable "vpc_security_group_ids" {
type = list(string)
description = "List of security group IDs to use with the instance"
default = null
}