Skip to content

Commit dd6790d

Browse files
updating config to 28.4.0 and adding ebs iops configuration (#27)
1 parent 6ce307b commit dd6790d

File tree

3 files changed

+22
-18
lines changed

3 files changed

+22
-18
lines changed

launch_template.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ resource "aws_launch_template" "sensor_launch_template" {
2626
ebs {
2727
volume_size = var.sensor_launch_template_volume_size
2828
volume_type = "gp3"
29+
iops = var.ebs_iops
2930
encrypted = var.kms_key_id == "" ? false : true
3031
kms_key_id = var.kms_key_id == "" ? null : var.kms_key_id
3132
delete_on_termination = true

sensor_config.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "sensor_config" {
2-
source = "github.com/corelight/terraform-config-sensor?ref=v1.0.0"
2+
source = "github.com/corelight/terraform-config-sensor?ref=28.4.0-1"
33

44
sensor_license = var.license_key
55
fleet_community_string = var.community_string
@@ -13,4 +13,6 @@ module "sensor_config" {
1313
sensor_monitoring_interface_name = "eth0"
1414
base64_encode_config = true
1515
sensor_health_check_http_port = "41080"
16+
fedramp_mode_enabled = var.fedramp_mode_enabled
17+
prometheus_enabled = var.prometheus_enabled
1618
}

variables.tf

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ variable "aws_key_pair_name" {
2323
type = string
2424
}
2525

26-
variable "availability_zones" {
27-
description = "The availability zone the auto scale group and load balancer will use"
28-
type = list(string)
29-
}
30-
3126
variable "community_string" {
3227
description = "the community string (api string) often times referenced by Fleet"
3328
type = string
@@ -92,18 +87,6 @@ variable "sensor_asg_name" {
9287
default = "corelight-sensor"
9388
}
9489

95-
variable "monitoring_nic_name" {
96-
description = "The name of the Network Interface used for monitoring GENEVE traffic to the sensor"
97-
type = string
98-
default = "corelight-mon-nic"
99-
}
100-
101-
variable "management_nic_name" {
102-
description = "The name of the Network Interface used for management of the sensor - SSH/HTTPS"
103-
type = string
104-
default = "corelight-mgmt-nic"
105-
}
106-
10790

10891
variable "sensor_launch_template_name" {
10992
description = "The name of the launch template used by the auto-scale group"
@@ -129,6 +112,12 @@ variable "sensor_launch_template_volume_size" {
129112
default = 500
130113
}
131114

115+
variable "ebs_iops" {
116+
type = number
117+
default = 16000
118+
description = "The gp3 IOPS given to the sensor volume"
119+
}
120+
132121
variable "lb_health_check_target_group_name" {
133122
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"
134123
type = string
@@ -218,3 +207,15 @@ variable "fleet_no_proxy" {
218207
default = ""
219208
description = "(optional) hosts or domains to bypass the proxy for fleet traffic"
220209
}
210+
211+
variable "prometheus_enabled" {
212+
type = bool
213+
default = false
214+
description = "(optional) enable Prometheus metrics"
215+
}
216+
217+
variable "fedramp_mode_enabled" {
218+
type = bool
219+
default = false
220+
description = "(optional) enable Fedramp mode"
221+
}

0 commit comments

Comments
 (0)