forked from hashicorp-education/learn-nomad-cluster-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathterraform.tfvars.example
47 lines (37 loc) · 1.66 KB
/
terraform.tfvars.example
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
# If any required variables are not provided here,
# they will be requested interactively.
# `name` (required) is used to override the default
# decorator for elements in the stack. This allows
# for more than one environment per account.
# This name can only contain alphanumeric characters.
name = "nomad"
# `key_name` (required) - The name of the AWS SSH
# keys to be loaded on the instance at provisioning.
key_name = "us-east-1-ssh-key"
# `nomad_binary` (optional, null) - URL of a zip file
# containing a nomad executable with which to replace
# the Nomad binaries in the AMI.
# Typically this is left commented unless necessary.
# nomad_binary = "https://releases.hashicorp.com/nomad/0.10.0/nomad_0.10.0_linux_amd64.zip"
# `region` ("us-east-1") - sets the AWS region to
# build your cluster in.
region = "us-east-1"
# `ami` (required) - The base AMI for the created
# nodes. This AMI must exist in the requested region
# for this environment to build properly.
# Image built with image.pkr.hcl
ami = "ami-012345678901234567"
# These options control instance size and count.
# They should be set according to your needs.
server_instance_type = "t2.micro"
server_count = "3"
client_instance_type = "t2.micro"
client_count = "3"
# `allowlist_ip` (required) - IP to allow access for the
# security groups (set to 0.0.0.0/0 for world).
allowlist_ip = "0.0.0.0/0"
# Token Accessor and Secret IDs used to create the
# Nomad server and client token for Consul auto-join.
# Must be a UUID
nomad_consul_token_id = "123e4567-e89b-12d3-a456-426614174000"
nomad_consul_token_secret = "123e4567-e89b-12d3-a456-426614174000"