-
Notifications
You must be signed in to change notification settings - Fork 6
/
variables.tf
84 lines (69 loc) · 1.75 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
84
variable "aws_access_key" {
type = "string"
description = "Your AWS access key id"
}
variable "aws_secret_key" {
type = "string"
description = "Your AWS secret key"
}
variable "aws_region" {
type = "string"
description = "The AWS region you want to create resources"
default = "us-east-1"
}
variable "public_subnets" {
description = "Public Subnets CIDR"
default = ["10.0.0.0/24"]
}
variable "private_subnets" {
description = "Private Subnets CIDR"
default = ["10.0.1.0/24"]
}
variable "vpc_cidr_block" {
type = "string"
description = "CIDR block for AWS VPC(TiDB Cluster)"
default = "10.0.0.0/16"
}
variable "enable_nat_gateway" {
description = "Should be true if you want to provision NAT Gateways for each of your private networks"
default = "true"
}
variable "single_nat_gateway" {
description = "Should be true if you want to provision a single shared NAT Gateway across all of your private networks"
default = "true"
}
variable "tidb_instance_type" {
type = "string"
default = "c4.4xlarge"
}
variable "tikv_instance_type" {
type = "string"
default = "i3.2xlarge"
}
variable "pd_instance_type" {
type = "string"
default = "i3.xlarge"
}
variable "monitor_instance_type" {
type = "string"
default = "t2.xlarge"
}
variable "bastion_instance_type" {
type = "string"
default = "t2.micro"
}
variable "tidb_count" {
type = "string"
description = "The numble of the tidb instances to be deployed"
default = "3"
}
variable "tikv_count" {
type = "string"
description = "The numble of the tikv instances to be deployed"
default = "3"
}
variable "pd_count" {
type = "string"
description = "The numble of the pd instances to be deployed"
default = "3"
}