-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvariables.tf
72 lines (59 loc) · 1.56 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
# VPC #
variable "region" {
type = string
default = "us-east-1"
}
variable "name" {
type = string
default = "xx-2048-hashistack"
}
variable "public_subnets" {
type = list(any)
default = [
"10.0.20.0/24",
"10.0.21.0/24",
"10.0.22.0/24",
]
}
variable "cidr" {
default = "10.0.0.0/16"
}
# Compute
variable "ami_id" {
type = string
default = null
}
variable "cluster_name" {
description = "What to name the Nomad cluster and all of its associated resources"
type = string
default = "hcp-2048"
}
variable "cluster_tag_key" {
description = "The tag the EC2 Instances will look for to automatically discover each other and form a cluster."
type = string
default = "xx-2048-servers"
}
variable "ssh_key_name" {
description = "The name of an EC2 Key Pair that can be used to SSH to the EC2 Instances in this cluster. Set to an empty string to not associate a Key Pair."
type = string
default = null
}
variable "vpc_id" {
description = "The ID of the VPC in which the nodes will be deployed. Uses default VPC if not supplied."
type = string
default = null
}
variable "spot_price" {
description = "The maximum hourly price to pay for EC2 Spot Instances."
type = number
default = null
}
variable "public_subnet" {
description = "The ID of the public subnet in which the runtime cluster will be deployed"
default = "subnet-0b63522bd122d750a"
}
variable "nomad_datacenter" {
type = string
description = "Nomad Datacenter"
default = "xx-2048"
}