-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
230 lines (190 loc) · 6.26 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
variable "region" {
type = string
description = "the GCP region"
}
variable "zone" {
description = "the GCP zone in specified region"
type = string
}
variable "instance_size" {
type = string
default = "e2-standard-8"
description = "GCP compute machine type for Fleet Manager"
}
variable "instance_ssh_key_pub" {
type = string
description = "path to the SSH pub key for the instances(s)"
}
variable "instance_ssh_user" {
type = string
default = "ec2-user"
description = "the image's default user"
}
variable "image" {
type = string
description = "the image from which to initialize this disk"
}
variable "image_disk_size" {
type = string
default = "120"
description = "the size of the image in gigabytes"
}
variable "network_mgmt_name" {
type = string
description = "the name or self_link of the mgmt network to attach this interface to"
}
variable "subnetwork_mgmt_name" {
type = string
description = "the name or self_link of the mgmt subnetwork to attach this interface to"
}
variable "network_prod_name" {
type = string
description = "the name or self_link of the prod network to attach this interface to"
}
variable "subnetwork_mon_name" {
type = string
description = "the name or self_link of the monitor subnetwork to attach this interface to"
}
variable "subnetwork_mgmt_cidr" {
type = string
description = "the management subnet for the sensor(s)"
}
variable "region_probe_source_ranges_cidr" {
type = list(string)
default = ["130.211.0.0/22", "35.191.0.0/16"]
description = "the GCP health check probe ranges, see https://cloud.google.com/load-balancing/docs/health-check-concepts#ip-ranges"
}
variable "region_autoscaler_policy_max_replicas" {
type = number
default = 3
description = "the maximum number of instances that the autoscaler can scale up to"
}
variable "region_autoscaler_policy_min_replicas" {
type = number
default = 1
description = "ghe minimum number of replicas that the autoscaler can scale down to"
}
variable "region_autoscaler_policy_cooldown_period" {
type = number
default = 600
description = "the number of seconds that the autoscaler should wait before it starts collecting information from a new instance"
}
variable "region_autoscaler_policy_cpu_utilization_target" {
type = number
default = 0.4
description = "the target CPU utilization that the autoscaler should maintain"
}
variable "subnetwork_mon_cidr" {
type = string
description = "the monitor subnet for the sensor(s)"
}
variable "subnetwork_mon_gateway" {
type = string
description = "the monitor subnet's gateway address"
}
variable "health_check_http_port" {
type = string
default = "41080"
description = "the port number for the HTTP health check request"
}
variable "license_key" {
description = "Your Corelight sensor license key"
type = string
sensitive = true
}
variable "community_string" {
type = string
sensitive = true
description = "the community string (api string) often times referenced by Fleet"
}
variable "instance_template_resource_name_prefix" {
type = string
default = "corelight-mig-template-"
description = "the name prefix of the instance template resource"
}
variable "instance_template_group_manager_resource_name" {
type = string
default = "corelight-mig-manager"
description = "the name of the instance group manager resource"
}
variable "instance_template_group_manager_base_instance_name" {
type = string
default = "corelight"
description = "the base instance name to use for instances in this group"
}
variable "region_autoscaler_resource_name" {
type = string
default = "corelight-autoscale"
description = "the name of the qutoscaler resource"
}
variable "region_health_check_resource_name" {
type = string
default = "corelight-traffic-monitor-health-check"
description = "the name of the health check resource"
}
variable "firewall_resource_name" {
type = string
default = "corelight-sensor-health-check-rule"
description = "the name of the firewall resource"
}
variable "region_backend_service_resource_name" {
type = string
default = "corelight-traffic-ilb-backend-service"
description = "the name of the region backend service resource"
}
variable "forwarding_rule_resource_name" {
type = string
default = "corelight-traffic-forwarding-rule"
description = "the name of the forwarding rule resource"
}
variable "packet_mirroring_resource_name" {
type = string
default = "corelight-traffic-mirroring"
description = "the name of the packet mirroring resource"
}
variable "packet_mirror_network_tag" {
type = string
default = "traffic-source"
description = "the packet mirror policy tag for mirrored resources"
}
variable "enrichment_bucket_name" {
description = "(optional) the gcs bucket name"
type = string
default = ""
}
variable "sensor_service_account_email" {
description = "When enrichment is configured, this must be set to a service account which has the required permissions"
type = string
default = ""
}
variable "fleet_token" {
type = string
default = ""
sensitive = true
description = "(optional) the pairing token from the Fleet UI. Must be set if 'fleet_url' is provided"
}
variable "fleet_url" {
type = string
default = ""
description = "(optional) the URL of the fleet instance from the Fleet UI. Must be set if 'fleet_token' is provided"
}
variable "fleet_server_sslname" {
type = string
default = "1.broala.fleet.product.corelight.io"
description = "(optional) the SSL hostname for the fleet server"
}
variable "fleet_http_proxy" {
type = string
default = ""
description = "(optional) the proxy URL for HTTP traffic from the fleet"
}
variable "fleet_https_proxy" {
type = string
default = ""
description = "(optional) the proxy URL for HTTPS traffic from the fleet"
}
variable "fleet_no_proxy" {
type = string
default = ""
description = "(optional) hosts or domains to bypass the proxy for fleet traffic"
}