-
Notifications
You must be signed in to change notification settings - Fork 1
/
variable.tf
75 lines (61 loc) · 1.5 KB
/
variable.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
##AWS instance Key Pair File
variable "key_pair" {
type = map(string)
default = {
"key_name" = "<public_key_name>"
"public_key" = "<public_key_value>"
}
}
variable "key_path" {
default = "<pem_file_path>/<pem_file_name.pem>"
}
#EC2
variable "ami" {
default = "ami-0fb653ca2d3203ac1"
}
variable "instance_type" {
default = "t2.medium"
}
variable "master_instance_name" {
type = list(string)
default = ["master1"]
}
variable "master_private_ip" {
type = list(any)
default = ["10.0.1.100"]
}
variable "node_count" {
type = number
default = 2
}
variable "node_instance_name" {
type = list(any)
default = ["node1", "node2"]
}
variable "node_private_ip" {
type = list(any)
default = [ "10.0.1.101", "10.0.1.102" ]
}
variable "node_name" {
type = list(any)
default = ["node1", "node2"]
}
#VPC
variable "subnet" {
type = string
default = "<subnet_id>" #Please make sure this subnet has accessibility to internet. Please use public subnet#
}
variable "sg_id" {
type = list(any)
default = ["<security_group_id>"] #Please see security group table in GIT README.md file for port details.
}
#UserPaths
variable "scriptpaths" {
type = string
default = "/Users/suyash/Projects/terraform-k8s/scripts/" #Update this path with your path where you cloned the git repository
}
#UserScripts
variable "k8sconfigpaths" {
type = string
default = "/Users/suyash/Projects/terraform-k8s/configs/" #Update this path with your path where you cloned the git repository
}