forked from yugabyte/terraform-aws-yugabyte
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
84 lines (70 loc) · 2.04 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
#########################################################
#
# Default values for creating a YugaByte 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 = "1"
type = "string"
}
variable "prefix" {
description = "Prefix prepended to all resources created."
default = "yb-ce-"
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_key_path" {
description = "The public key to use when connecting to the instances."
type = "string"
}
variable "subnet_ids" {
description = "List of subnets to launch the instances in. Example: ['subnet-12345','subnet-98765']."
type = "list"
}
variable "vpc_id" {
description = "The VPC ID to create the security groups in."
type = "string"
}