-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvariables.tf
More file actions
245 lines (203 loc) · 7.14 KB
/
variables.tf
File metadata and controls
245 lines (203 loc) · 7.14 KB
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
242
243
244
245
variable "vpc_id" {
description = "The ID of the VPC where resources will be deployed"
type = string
}
variable "corelight_sensor_ami_id" {
description = "The AMI ID of the Corelight sensor. Request access to the AMI from your account executive"
type = string
}
variable "monitoring_subnet_ids" {
description = "List of subnet IDs where monitor traffic will be available, one per availability zone"
type = list(string)
}
variable "management_subnet_ids" {
description = "List of subnet IDs used to SSH / manage Corelight sensors, one per availability zone"
type = list(string)
}
variable "aws_key_pair_name" {
description = "The name of the AWS key pair that will be used to access the sensor instances in the auto-scale group"
type = string
}
variable "community_string" {
description = "the community string (api string) often times referenced by Fleet"
type = string
sensitive = true
}
variable "fleet_token" {
type = string
sensitive = true
description = "Pairing token from the Fleet UI. Must be set if 'fleet_url' is provided"
}
variable "fleet_url" {
type = string
description = "URL of the fleet instance from the Fleet UI. Must be set if 'fleet_token' is provided"
}
variable "fleet_server_sslname" {
type = string
description = "SSL hostname for the fleet server"
}
variable "kms_key_id" {
description = "The KMS key ID to be used for EBS volume encryption for the auto-scale group instances"
type = string
default = null
}
variable "license_key" {
description = "Your Corelight sensor license key. Optional if fleet_url is configured."
sensitive = true
type = string
default = ""
validation {
condition = var.license_key != "" || var.fleet_url != ""
error_message = "Either license_key must be provided or fleet_url must be configured."
}
}
variable "asg_lambda_iam_role_arn" {
description = "ARN of the ASG lambda role created in the `iam/lambda` sub-module"
type = string
}
# Variables with defaults
variable "sensor_asg_auto_scale_policy_name" {
description = "The name of the auto-scale group policy"
type = string
default = "corelight-sensor-asg-policy"
}
variable "sensor_asg_scale_in_policy_name" {
description = "The name of the auto-scale group scale in policy"
type = string
default = "corelight-sensor-asg-scale-in-policy"
}
variable "sensor_health_check_http_port" {
description = "The port used for health checks on the sensor"
type = number
default = 41080
}
variable "healthcheck_path" {
description = "The path for the health check"
type = string
default = "/api/system/healthcheck"
}
variable "sensor_asg_load_balancer_name" {
description = "The name of the load balancer which fronts the auto-scale group"
type = string
default = "corelight-sensor-lb"
}
variable "sensor_asg_name" {
description = "The name of the Corelight sensor auto-scale group"
type = string
default = "corelight-sensor"
}
variable "sensor_launch_template_name" {
description = "The name of the launch template used by the auto-scale group"
type = string
default = "corelight-sensor-launch-template"
}
variable "sensor_launch_template_instance_type" {
description = "The instance type the auto-scale group will use for each instance"
type = string
default = "c5.2xlarge"
}
variable "sensor_launch_template_volume_name" {
description = "The name of the volume for the sensor launch template"
type = string
default = "/dev/xvda"
}
variable "sensor_launch_template_volume_size" {
description = "The size of the volume for the sensor launch template"
type = number
default = 500
}
variable "ebs_iops" {
type = number
default = 16000
description = "The gp3 IOPS given to the sensor volume"
}
variable "lb_health_check_target_group_name" {
description = "The name of the health check target group which determines if the sensor in the ASG comes up and is ready to accept traffic"
type = string
default = "corelight-sensor-gwlb-tg"
}
variable "sensor_monitoring_security_group_name" {
description = "Name of the security group used to allow health check and GENEVE traffic to the sensor"
type = string
default = "corelight-sensor-monitoring"
}
variable "sensor_monitoring_security_group_description" {
description = "Description of the security group used to allow access to the monitoring NIC"
type = string
default = "Security group for the sensor which allows health check and GENEVE traffic inbound"
}
variable "sensor_management_security_group_name" {
description = "Name of the security group used to allow access to the monitoring NIC"
type = string
default = "corelight-sensor-management"
}
variable "sensor_management_security_group_description" {
description = "Name of the security group used to allow SSH access to the sensor"
type = string
default = "Security group for the sensor which allows ssh from the DMZ / Bastion"
}
variable "instance_profile_arn" {
description = "(optional) Instance profile must be added granting cloud features access to AWS APIs"
type = string
default = ""
}
variable "eventbridge_lifecycle_rule_name" {
description = "Auto Scale Group EventBridge rule name"
type = string
default = "corelight-asg-sensor-lifecycle-notification"
}
variable "lambda_function_name" {
description = "Name of the ENI management lambda function"
type = string
default = "corelight-asg-sensor-nic-manager"
}
variable "cloudwatch_log_group_prefix" {
description = "The cloudwatch string prepended to the cloud watch log group name"
type = string
default = "/aws/lambda"
}
variable "cloudwatch_log_group_retention" {
description = "The Lambda log group retention in days"
type = number
default = 3
}
variable "asg_lifecycle_hook_name" {
description = "name of the lifecycle hook triggered when new instances are launched"
type = string
default = "scaling-up"
}
variable "tags" {
description = "(optional) Any tags that should be applied to resources deployed by the module"
type = map(any)
default = {}
}
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"
}
variable "prometheus_enabled" {
type = bool
default = false
description = "(optional) enable Prometheus metrics"
}
variable "fedramp_mode_enabled" {
type = bool
default = false
description = "(optional) enable Fedramp mode"
}
variable "vpc_endpoint_service_acceptance_required" {
type = bool
default = false
description = "(optional) Whether to require acceptance of the VPC endpoint"
}