-
Notifications
You must be signed in to change notification settings - Fork 5
/
variables.tf
178 lines (149 loc) · 4.73 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
### Required Variables
variable "region" {
type = string
description = "(Required) The AWS Region to use for the instance(s)."
}
variable "access_key" {
type = string
description = "(Required) The AWS Access Key to use for the instance(s)."
}
variable "secret_key" {
type = string
description = "(Required) The AWS Secret Key to use for the instance(s)."
}
variable "key_pair_name" {
type = string
description = "(Required) The AWS Key Pair name to use for the instance(s)."
}
variable "domain" {
type = string
description = "(Required) The AWS Route53 domain to use for the cluster(s)."
}
variable "prefix" {
type = string
description = "(Required) The prefix/name for all provisioned resources."
}
### Common Optional Variables
variable "ami_id" {
default = "ami-0453ec754f44f9a4a"
type = string
description = "(Optional) The AWS AMI ID to use for the instance(s)."
}
variable "token" {
default = "awsRKE2terraform"
type = string
description = "(Optional) The RKE2 Cluster Join Token to use for the cluster(s)."
}
variable "vRKE2" {
default = "v1.30"
type = string
description = "(Optional) The RKE2 Version to use for the clusters(s)."
}
### Networking Variables
variable "vpc_cidr_block" {
default = "10.0.0.0/16"
type = string
description = "(Optional) The AWS VPC CIDR Block to use for the instance(s)."
}
variable "public_subnet_cidr_blocks" {
default = ["10.0.10.0/24", "10.0.20.0/24", "10.0.30.0/24"]
type = list(any)
description = "(Optional) The AWS Subnet CIDR Blocks to use for the instance(s)."
}
variable "private_subnet_cidr_blocks" {
default = ["10.0.40.0/24", "10.0.50.0/24", "10.0.60.0/24"]
type = list(any)
description = "(Optional) The AWS Subnet CIDR Blocks to use for the instance(s)."
}
### Instance Variables
variable "instance_type_control" {
default = "m5.2xlarge"
type = string
description = "(Optional) The AWS Instance type to use for the instance(s)."
}
variable "instance_type_controls" {
default = "m5.2xlarge"
type = string
description = "(Optional) The AWS Instance type to use for the instance(s)."
}
variable "instance_type_worker" {
default = "m5.2xlarge"
type = string
description = "(Optional) The AWS Instance type to use for the instance(s)."
}
variable "instance_type_bastion" {
default = "c5.large"
type = string
description = "(Optional) The AWS Instance type to use for the instance(s)."
}
variable "number_of_instances_control" {
default = 1
type = number
description = "(Optional) The number of AWS EC2 instances to create on deployment."
}
variable "number_of_instances_controls" {
default = 2
type = number
description = "(Optional) The number of AWS EC2 instances to create on deployment."
}
variable "number_of_instances_worker" {
default = 3
type = number
description = "(Optional) The number of AWS EC2 instances to create on deployment."
}
variable "number_of_instances_bastion" {
default = 1
type = number
description = "(Optional) The number of AWS EC2 instances to create on deployment."
}
### Storage Variables
variable "volume_size_control" {
default = 128
type = number
description = "(Optional) The AWS Volume Size to use for the instance(s)."
}
variable "volume_size_controls" {
default = 128
type = number
description = "(Optional) The AWS Volume Size to use for the instance(s)."
}
variable "volume_size_worker" {
default = 256
type = number
description = "(Optional) The AWS Volume Size to use for the instance(s)."
}
variable "volume_size_bastion" {
default = 64
type = number
description = "(Optional) The AWS Volume Size to use for the instance(s)."
}
variable "volume_type_control" {
default = "gp3"
type = string
description = "(Optional) The AWS Volume Type to use for the instance(s)."
}
variable "volume_type_controls" {
default = "gp3"
type = string
description = "(Optional) The AWS Volume Type to use for the instance(s)."
}
variable "volume_type_worker" {
default = "gp3"
type = string
description = "(Optional) The AWS Volume Type to use for the instance(s)."
}
variable "volume_type_bastion" {
default = "gp3"
type = string
description = "(Optional) The AWS Volume Type to use for the instance(s)."
}
variable "encrypted" {
default = true
type = bool
description = "(Optional) Volume Encryption for use for the instance(s)."
}
variable "delete_on_termination" {
default = true
type = bool
description = "(Optional) Delete on Termination for the instance(s)."
}