forked from bpamos/tf-aws-redis-enterprise-cluster
-
Notifications
You must be signed in to change notification settings - Fork 2
/
terraform.tfvars.example
119 lines (89 loc) · 3.85 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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#### User Input Required
#### Enter your user variables here
#### Some variables have default values and if you do not specify
#### User Input Required
#### Access key and Secret key for aws account [AWS_ACCESS_KEY, AWS_SECRET_KEY]
#### (fake example: aws_creds = ["myAccesssKeyxjdklfdakf","MySecretKeyxkldkfhadjkfh"])
aws_creds =
#### User Input Required
#### name of ssh key (.pem file) to be added to instance (AWS key pair name)
#### ie. if your AWS ssh keys name is "my-ssh-key.pem", enter in "my-ssh-key"
#### the SSH key must have already had "chmod 400 my-ssh-key.pem" run on it before using
#### (fake example: ssh_key_name = "my-ssh-key")
ssh_key_name =
#### User Input Required
#### path to your the SSH key .pem file.
#### (fake example: ssh_key_path = "~/keys/my-ssh-key.pem")
ssh_key_path =
#### User Input Required
#### If you do not have one already, go get a domain name on Route53
#### DNS hosted zone id (find value in R53 hosted zones)
### navigate to Route 53 in the AWS console, click hosted zones,
### find hosted zone "domain name" of interest, use its "hosted zone ID" (fake example: dns_hosted_zone_id="Z903232kljadfdk")
dns_hosted_zone_id =
#### Owner tag name of resources
#### example: owner = "redisuser"
owner = "redisuser"
#### AWS Region
#### example: region = "us-west-2"
region = "us-west-2"
#### Base Name of Resources
#### (Resource prefix for all generated resources)
#### default = "redisuser1-tf"
base_name = "redis-tf"
################### VPC Variables
#### example: vpc_cidr = ""10.0.0.0/16""
vpc_cidr = "10.0.0.0/16"
#### Subnet CIDR Block
#### example: subnet_cidr_blocks = ["10.0.0.0/24","10.0.16.0/24","10.0.32.0/24"]
subnet_cidr_blocks = ["10.0.0.0/24","10.0.16.0/24","10.0.32.0/24"]
#### Subnet AZ
#### example: subnet_azs = ["us-west-2a","us-west-2b","us-west-2c"]
subnet_azs = ["us-west-2a","us-west-2b","us-west-2c"]
############### Test Instance Variables
#### instance type to use for test node with redis and memtier installed on it
#### example: test_instance_type = "t3.micro"
test_instance_type = "t3.micro"
#### how many test nodes
#### If you want a Tester node configured with redis and memtier, say 1 or greater, else say 0
#### example: test-node-count = 1
test-node-count = 1
############## Redis Enterprise Nodes Variables
#### User Input Required
#### RE Software download url (MUST BE ubuntu 18.04)
#### (FAKE example (update the x.x.xx with the Redis Software version!): re_download_url = "https://s3.amazonaws.com/redis-enterprise-software-downloads/x.x.xx/redislabs-x.x.xx-68-bionic-amd64.tar")
re_download_url =
#### RE cluster options
#### Do you want a Redis on Flash enabled cluster, if so, true, else, false
#### example: flash_enabled = false
flash_enabled = false
#### Do you want a Rack Zone Aware enabled cluster, if so, true, else, false
#### example: rack_awareness = false
rack_awareness = false
#### how many data nodes, 3 minimum, (odd numbers required)
#### example: data-node-count = 3
data-node-count = 3
##### redis enterprise software instance type
##### (if redis on flash (rof) is enabled it is suggested to use i3.2xlarge)
##### example: re_instance_type = "t2.xlarge"
re_instance_type = "t2.xlarge"
##### EBS volume creation yes or no, true false
create_ebs_volumes_re = true
create_ebs_volumes_tester = false
##### EBS volume for persistent and ephemeral storage
#### example: re-volume-size = 150
re-volume-size = "50"
##### SECURITY
##### example: allow-public-ssh = 1
allow-public-ssh = 1
##### permits unrestricted access within the specified VPC CIDR block.
##### example: open-nets = ["10.0.0.0/16"]
open-nets = ["10.0.0.0/16"]
############# Create RE Cluster Variables
#### Cluster Inputs
#### RE Cluster Username
#### example: re_cluster_username = "[email protected]"
re_cluster_username = "[email protected]"
#### RE Cluster Password
#### example: re_cluster_password = "admin"
re_cluster_password = "admin"