-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
81 lines (68 loc) · 1.47 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
variable "region" {
type = string
default = "us-east-1"
}
variable "access_key" {
type = string
default = ""
}
variable "secret_key" {
type = string
default = ""
}
variable "token" {
type = string
default = null
}
variable "instance_type" {
type = string
default = "m5.xlarge" # change instance type if needed
}
variable "ami_image" {
type = string
default = "ami-0885b1f6bd170450c" # ubuntu image
}
variable "key_name" {
type = string
default = "localkey" # key name, see readme
}
variable "key_path" {
type = string
default = "." # change directory to local .ssh directory e.g. ~/.ssh/
}
variable "aws_key_name" {
type = string
default = "amzkey" # key name, see readme
}
variable "amz_key_path" {
type = string
default = "amzkey.pem"
}
variable "namenode_count" {
type = number
default = 1 # count = 1 = 1 aws EC2
}
variable "datanode_count" {
type = number
default = 3 # count = 3 = 3 aws EC2
}
variable "ips" {
default = {
"0" = "172.31.0.102"
"1" = "172.31.0.103"
"2" = "172.31.0.104"
"3" = "172.31.0.105"
"4" = "172.31.0.106"
"5" = "172.31.0.107"
}
}
variable "hostnames" {
default = {
"0" = "s02"
"1" = "s03"
"2" = "s04"
"3" = "s05"
"4" = "s06"
"5" = "s07"
}
}