forked from hysds/hysds-terraform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf.tmpl
137 lines (117 loc) · 2.26 KB
/
variables.tf.tmpl
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
# globals
variable "project" {}
variable "venue" {}
variable "counter" {}
variable "shared_credentials_file" {
default = "~/.aws/credentials"
}
variable "profile" {
default = "default"
}
variable "key_name" {
default = "__key_name__"
}
variable "private_key_file" {
default = "__private_key_file__"
}
variable "region" {
default = "__region__"
}
variable "az" {
default = "__az__"
}
variable "subnet_id" {
default = "__subnet_id__"
}
variable "vpc_security_group_ids" {
type = "list"
default = [
"__sg_id1__",
"__sg_id2__",
"__sg_id3__"
]
}
# mozart vars
variable "mozart" {
type = "map"
default = {
name = "mozart"
ami = "__mozart_ami_id__"
instance_type = "r4.2xlarge"
data = "/data"
data_dev = "/dev/xvdb"
data_dev_size = 50
data2 = "/data2"
data2_dev = "/dev/xvdc"
data2_dev_size = 50
}
}
# metrics vars
variable "metrics" {
type = "map"
default = {
name = "metrics"
ami = "__metrics_ami_id__"
instance_type = "r4.2xlarge"
data = "/data"
data_dev = "/dev/xvdb"
data_dev_size = 100
}
}
# grq vars
variable "grq" {
type = "map"
default = {
name = "grq"
ami = "__grq_ami_id__"
instance_type = "r4.4xlarge"
data = "/data"
data_dev = "/dev/xvdb"
data_dev_size = 100
}
}
# factotum vars
variable "factotum" {
type = "map"
default = {
name = "factotum"
ami = "__factotum_ami_id__"
instance_type = "c5.9xlarge"
docker_storage_dev = "/dev/xvdb"
docker_storage_dev_size = 50
data = "/data"
data_dev = "/dev/xvdc"
data_dev_mount = "/dev/nvme2n1"
data_dev_size = 300
}
}
# ci vars
variable "ci" {
type = "map"
default = {
name = "ci"
ami = "__ci_ami_id__"
instance_type = "c5.4xlarge"
docker_storage_dev = "/dev/xvdb"
docker_storage_dev_size = 50
data = "/data"
data_dev = "/dev/xvdc"
data_dev_mount = "/dev/nvme2n1"
data_dev_size = 100
}
}
# autoscale vars
variable "autoscale" {
type = "map"
default = {
name = "autoscale"
ami = "__autoscale_ami_id__"
instance_type = "c5.9xlarge"
docker_storage_dev = "/dev/xvdb"
docker_storage_dev_size = 50
data = "/data"
data_dev = "/dev/xvdc"
data_dev_mount = "/dev/nvme2n1"
data_dev_size = 300
}
}