This repository has been archived by the owner on Dec 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
83 lines (64 loc) · 2.27 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
73
74
75
76
77
78
79
80
81
82
83
# ---------------------------------------------------------------------------------------------------------------------
# required
# ---------------------------------------------------------------------------------------------------------------------
variable "gcp_project_id" {
description = "your google project id"
}
variable "gcp_user" {
description = "user used to ssh into google instances"
}
variable "azure_user" {
description = "user used to ssh into azure instances"
}
variable "crdb_license_org" {
description = "crdb license org"
}
variable "crdb_license_key" {
description = "crdb license key"
}
# ---------------------------------------------------------------------------------------------------------------------
# optional
# ---------------------------------------------------------------------------------------------------------------------
variable "os_disk_size" {
default = 100
}
variable "gcp_machine_type" {
default = "n1-standard-16"
}
variable "gcp_machine_type_client" {
default = "n1-standard-8"
}
// you may need to run the following command to create local GCP keys... `gcloud compute config-ssh`
// see https://cloud.google.com/sdk/gcloud/reference/compute/config-ssh
variable "gcp_private_key_path" {
default = "~/.ssh/google_compute_engine"
}
// the contents of this file can be downloaded from google. default configuration expects a file named `gcp-account.json` located in the same directory as this file.
// see https://www.terraform.io/docs/providers/google/guides/provider_reference.html#credentials
// see https://cloud.google.com/iam/docs/creating-managing-service-account-keys
variable "gcp_credentials_file" {
default = "gcp-account.json"
}
variable "azure_machine_type" {
default = "Standard_F16s_v2"
}
variable "azure_machine_type_client" {
default = "Standard_F8s_v2"
}
// see https://docs.microsoft.com/en-us/azure/virtual-machines/linux/mac-create-ssh-keys
variable "azure_private_key_path" {
default = "~/.ssh/id_rsa"
}
// see https://docs.microsoft.com/en-us/azure/virtual-machines/linux/mac-create-ssh-keys
variable "azure_public_key_path" {
default = "~/.ssh/id_rsa.pub"
}
variable "crdb_max_sql_memory" {
default = ".25"
}
variable "crdb_cache" {
default = ".25"
}
variable "crdb_nodes_per_region" {
default = "3"
}