-
Notifications
You must be signed in to change notification settings - Fork 22
/
variables.tf
241 lines (209 loc) · 8.32 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
variable "prefix" {
description = "Prefix for resources created by this module"
type = string
//default = "tf-aws-bigip"
}
variable "f5_username" {
description = "The admin username of the F5 Bigip that will be deployed"
default = "bigipuser"
}
variable "f5_password" {
description = "Password of the F5 Bigip that will be deployed"
default = ""
}
variable "f5_hostname" {
description = "Custom management hostname. Defaults to managemet public dns."
type = string
default = ""
}
variable "include_deprecated_amis" {
description = "Whether or not to include deprecated AMIs when performing the AMI search"
type = bool
default = false
}
variable "f5_ami_search_name" {
description = "BIG-IP AMI name to search for"
type = string
default = "F5 BIGIP-17.1* PAYG-Best Plus 25Mbps*"
}
variable "ec2_instance_type" {
description = "AWS EC2 instance type"
type = string
default = "m5.xlarge"
}
variable "ec2_key_name" {
description = "AWS EC2 Key name for SSH access"
type = string
}
variable "ebs_volume_encryption" {
description = "Whether to enable encryption on the EBS volume"
type = bool
default = false
}
variable "ebs_volume_kms_key_arn" {
description = "The ARN of the KMS key for volume encryption when using a customer managed key"
type = string
default = null
}
variable "ebs_volume_size" {
description = "Size of the volume in gibibytes (GiB)"
type = number
default = 82
}
variable "ebs_volume_type" {
description = "The EBS volume type to use for the root volume"
type = string
default = "gp2"
}
variable "enable_imdsv2" {
description = "Whether to enable IMDSv2 on the EC2 instance."
default = false
type = bool
}
variable "aws_secretmanager_auth" {
description = "Whether to use secret manager to pass authentication"
type = bool
default = false
}
variable "aws_secretmanager_secret_id" {
description = "AWS Secret Manager Secret ID that stores the BIG-IP password"
type = string
default = null
}
variable "aws_iam_instance_profile" {
description = "aws_iam_instance_profile"
type = string
default = null
}
variable "mgmt_subnet_ids" {
description = "The subnet id of the virtual network where the virtual machines will reside."
type = list(object({
subnet_id = string
public_ip = bool
private_ip_primary = string
}))
default = [{ "subnet_id" = null, "public_ip" = null, "private_ip_primary" = null }]
}
variable "external_subnet_ids" {
description = "The subnet id of the virtual network where the virtual machines will reside."
type = list(object({
subnet_id = string
public_ip = bool
private_ip_primary = string
private_ip_secondary = string
}))
default = [{ "subnet_id" = null, "public_ip" = null, "private_ip_primary" = null, "private_ip_secondary" = null }]
}
variable "internal_subnet_ids" {
description = "The subnet id of the virtual network where the virtual machines will reside."
type = list(object({
subnet_id = string
public_ip = bool
private_ip_primary = string
}))
default = [{ "subnet_id" = null, "public_ip" = null, "private_ip_primary" = null }]
}
variable "internal_source_dest_check" {
description = "Disable source/dest check on Internal interface to allow inline routing for backends"
default = true
}
variable "external_source_dest_check" {
description = "Disable source/dest check on External interface to allow inline routing for backends"
default = false
}
variable "mgmt_securitygroup_ids" {
description = "The Network Security Group ids for management network "
type = list(string)
}
variable "external_securitygroup_ids" {
description = "The Network Security Group ids for external network "
type = list(string)
default = []
}
variable "internal_securitygroup_ids" {
description = "The Network Security Group ids for internal network "
type = list(string)
default = []
}
## Please check and update the latest DO URL from https://github.com/F5Networks/f5-declarative-onboarding/releases
# always point to a specific version in order to avoid inadvertent configuration inconsistency
variable "DO_URL" {
description = "URL to download the BIG-IP Declarative Onboarding module"
type = string
default = "https://github.com/F5Networks/f5-declarative-onboarding/releases/download/v1.46.0/f5-declarative-onboarding-1.46.0-7.noarch.rpm"
}
## Please check and update the latest AS3 URL from https://github.com/F5Networks/f5-appsvcs-extension/releases/latest
# always point to a specific version in order to avoid inadvertent configuration inconsistency
variable "AS3_URL" {
description = "URL to download the BIG-IP Application Service Extension 3 (AS3) module"
type = string
default = "https://github.com/F5Networks/f5-appsvcs-extension/releases/download/v3.53.0/f5-appsvcs-3.53.0-7.noarch.rpm"
}
## Please check and update the latest TS URL from https://github.com/F5Networks/f5-telemetry-streaming/releases/latest
# always point to a specific version in order to avoid inadvertent configuration inconsistency
variable "TS_URL" {
description = "URL to download the BIG-IP Telemetry Streaming module"
type = string
default = "https://github.com/F5Networks/f5-telemetry-streaming/releases/download/v1.37.0/f5-telemetry-1.37.0-1.noarch.rpm"
}
## Please check and update the latest Failover Extension URL from https://github.com/F5Networks/f5-cloud-failover-extension/releases/latest
# always point to a specific version in order to avoid inadvertent configuration inconsistency
variable "CFE_URL" {
description = "URL to download the BIG-IP Cloud Failover Extension module"
type = string
default = "https://github.com/F5Networks/f5-cloud-failover-extension/releases/download/v2.1.3/f5-cloud-failover-2.1.3-3.noarch.rpm"
}
## Please check and update the latest FAST URL from https://github.com/F5Networks/f5-appsvcs-templates/releases/latest
# always point to a specific version in order to avoid inadvertent configuration inconsistency
variable "FAST_URL" {
description = "URL to download the BIG-IP FAST module"
type = string
default = "https://github.com/F5Networks/f5-appsvcs-templates/releases/download/v1.25.0/f5-appsvcs-templates-1.25.0-1.noarch.rpm"
}
## Please check and update the latest runtime init URL from https://github.com/F5Networks/f5-bigip-runtime-init/releases/latest
# always point to a specific version in order to avoid inadvertent configuration inconsistency
variable "INIT_URL" {
description = "URL to download the BIG-IP runtime init"
type = string
default = "https://cdn.f5.com/product/cloudsolutions/f5-bigip-runtime-init/v2.0.3/dist/f5-bigip-runtime-init-2.0.3-1.gz.run"
}
variable "libs_dir" {
description = "Directory on the BIG-IP to download the A&O Toolchain into"
type = string
default = "/config/cloud/aws/node_modules"
}
variable "onboard_log" {
description = "Directory on the BIG-IP to store the cloud-init logs"
type = string
default = "/var/log/startup-script.log"
}
variable "custom_user_data" {
description = "Provide a custom bash script or cloud-init script the BIG-IP will run on creation"
type = string
default = null
}
variable "tags" {
description = "key:value tags to apply to resources built by the module"
type = map(any)
default = {}
}
variable "externalnic_failover_tags" {
description = "key:value tags to apply to external nic resources built by the module"
type = any
default = {}
}
variable "internalnic_failover_tags" {
description = "key:value tags to apply to internal nic resources built by the module"
type = any
default = {}
}
variable "cfe_secondary_vip_disable" {
type = bool
description = "Disable Externnal Public IP Association to instance based on this flag (Usecase CFE Scenario)"
default = false
}
variable "sleep_time" {
type = string
default = "600s"
description = "The number of seconds/minutes of delay to build into creation of BIG-IP VMs; default is 250. BIG-IP requires a few minutes to complete the onboarding process and this value can be used to delay the processing of dependent Terraform resources."
}