forked from hashicorp-education/learn-nomad-cluster-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
70 lines (56 loc) · 1.64 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
variable "name" {
description = "Used to name various infrastructure components"
default = "nomad"
}
variable "allowlist_ip" {
description = "IP to allow access for the security groups (set 0.0.0.0/0 for world)"
}
variable "region" {
description = "The AWS region to deploy to."
default = "us-east-1"
}
variable "ami" {
description = "The AMI to use for the server and client machines."
}
variable "server_instance_type" {
description = "The AWS instance type to use for servers."
default = "t2.micro"
}
variable "client_instance_type" {
description = "The AWS instance type to use for clients."
default = "t2.micro"
}
variable "root_block_device_size" {
description = "The volume size of the root block device."
default = 16
}
variable "key_name" {
description = "Name of the SSH key used to provision EC2 instances."
}
variable "server_count" {
description = "The number of servers to provision."
default = "3"
}
variable "client_count" {
description = "The number of clients to provision."
default = "3"
}
variable "retry_join" {
description = "Used by Consul to automatically form a cluster."
type = map(string)
default = {
provider = "aws"
tag_key = "ConsulAutoJoin"
tag_value = "auto-join"
}
}
variable "nomad_binary" {
description = "Used to replace the machine image installed Nomad binary."
default = "none"
}
variable "nomad_consul_token_id" {
description = "Accessor ID for the Consul ACL token used by Nomad servers and clients."
}
variable "nomad_consul_token_secret" {
description = "Secret ID for the Consul ACL token used by Nomad servers and clients."
}