-
Notifications
You must be signed in to change notification settings - Fork 21
/
variables.tf
125 lines (103 loc) · 3.07 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
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
119
120
121
122
123
124
##########################################################
#
# Default values for creating a YugabyteDB cluster on AWS.
#
##########################################################
variable "associate_public_ip_address" {
description = "Associate public IP address to instances created."
default = true
type = string
}
variable "cluster_name" {
description = "The name for the cluster (universe) being created."
type = string
}
variable "custom_security_group_id" {
description = "Security group to assign to the instances. Example: 'sg-12345'."
default = ""
type = string
}
variable "instance_type" {
description = "The type of instances to create."
default = "c4.xlarge"
type = string
}
variable "num_instances" {
description = "Number of instances in the YugaByte cluster."
default = "3"
type = string
}
variable "prefix" {
description = "Prefix prepended to all resources created."
default = "yb-"
type = string
}
variable "replication_factor" {
description = "The replication factor for the universe."
default = 3
type = string
}
variable "root_volume_iops" {
description = "Provisioned IOPS - valid only for 'io1' type."
default = 0
type = string
}
variable "root_volume_size" {
description = "The volume size in gigabytes."
default = "50"
type = string
}
variable "root_volume_type" {
description = "The volume type. Must be one of 'gp2' or 'io1'."
default = "gp2"
type = string
}
variable "ssh_keypair" {
description = "The SSH keypair name to use for the instances."
type = string
}
variable "ssh_private_key" {
description = "The private key to use when connecting to the instances."
type = string
}
variable "ssh_user" {
description = "The public key to use when connecting to the instances."
type = string
default = "centos"
}
variable "region_name" {
description = "Region name for AWS. Example: 'us-west-2'"
type = string
}
variable "availability_zones" {
description = "List of availability zones to utilize. Example: ['us-west-1a','us-west-1b','us-west-1c']"
type = list(string)
}
variable "subnet_ids" {
description = "List of subnets to launch the instances in. Example: ['subnet-12345','subnet-98765']."
type = list(string)
}
variable "use_public_ip_for_ssh" {
description = "Flag to control use of public or private ips for ssh."
default = "true"
type = string
}
variable "vpc_id" {
description = "The VPC ID to create the security groups in."
type = string
}
variable "yb_download_url" {
description = "The download location of the YugaByteDB edition"
default = "https://downloads.yugabyte.com"
type = string
}
variable "yb_version" {
description = "The version number of YugaByteDB to install"
default = "2024.2.0.0"
type = string
}
variable "allowed_sources" {
description = "Add Source IP in Security Group to restrict the traffic"
type = list(string)
default = ["0.0.0.0/0"]
}