forked from dcos-terraform/terraform-aws-instance
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
92 lines (74 loc) · 2.15 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
variable "region" {
description = "region"
default = ""
}
variable "cluster_name" {
description = "Name of the DC/OS cluster"
}
# variable "availability_zones" {
# description = "Specify the availability zones to be used"
# type = "list"
# }
variable "tags" {
description = "Add custom tags to all resources"
type = "map"
default = {}
}
variable "ami" {
description = "AMI that will be used for the instance"
}
variable "num" {
description = "How many instances should be created"
}
variable "instance_type" {
description = "Instance Type"
default = "m4.large"
}
variable "root_volume_size" {
description = "Specify the root volume size"
default = "40"
}
variable "root_volume_type" {
description = "Specify the root volume type. Masters MUST have at least gp2"
default = "gp2"
}
variable "extra_volumes" {
description = "Extra volumes for each instance"
default = []
}
variable "subnet_ids" {
description = "List of subnet IDs created in this network"
type = "list"
}
variable "security_group_ids" {
description = "Firewall IDs to use for these instances"
type = "list"
}
variable "iam_instance_profile" {
description = "The instance profile to be used for these instances"
default = ""
}
variable "associate_public_ip_address" {
description = "Associate a public IP address with the instances"
default = true
}
variable "user_data" {
description = "User data to be used on these instances (cloud-init)"
default = ""
}
variable "dcos_instance_os" {
description = "Operating system to use. Instead of using your own AMI you could use a provided OS."
default = "centos_7.4"
}
// TODO: Maybe use a list instead and provision keys through cloudinit
variable "key_name" {
description = "The SSH key to use for these instances."
}
variable "hostname_format" {
description = "Format the hostname inputs are index+1, region, cluster_name"
default = "%[3]s-instance%[1]d-%[2]s"
}
variable "extra_volume_name_format" {
description = "Printf style format for naming the extra volumes. Inputs are cluster_name and instance ID."
default = "extra-volumes-%s-%s"
}