Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions launch_template.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ resource "aws_launch_template" "sensor_launch_template" {
ebs {
volume_size = var.sensor_launch_template_volume_size
volume_type = "gp3"
iops = var.ebs_iops
encrypted = var.kms_key_id == "" ? false : true
kms_key_id = var.kms_key_id == "" ? null : var.kms_key_id
delete_on_termination = true
Expand Down
4 changes: 3 additions & 1 deletion sensor_config.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "sensor_config" {
source = "github.com/corelight/terraform-config-sensor?ref=v1.0.0"
source = "github.com/corelight/terraform-config-sensor?ref=28.4.0-1"

sensor_license = var.license_key
fleet_community_string = var.community_string
Expand All @@ -13,4 +13,6 @@ module "sensor_config" {
sensor_monitoring_interface_name = "eth0"
base64_encode_config = true
sensor_health_check_http_port = "41080"
fedramp_mode_enabled = var.fedramp_mode_enabled
prometheus_enabled = var.prometheus_enabled
}
35 changes: 18 additions & 17 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ variable "aws_key_pair_name" {
type = string
}

variable "availability_zones" {
description = "The availability zone the auto scale group and load balancer will use"
type = list(string)
}

variable "community_string" {
description = "the community string (api string) often times referenced by Fleet"
type = string
Expand Down Expand Up @@ -92,18 +87,6 @@ variable "sensor_asg_name" {
default = "corelight-sensor"
}

variable "monitoring_nic_name" {
description = "The name of the Network Interface used for monitoring GENEVE traffic to the sensor"
type = string
default = "corelight-mon-nic"
}

variable "management_nic_name" {
description = "The name of the Network Interface used for management of the sensor - SSH/HTTPS"
type = string
default = "corelight-mgmt-nic"
}


variable "sensor_launch_template_name" {
description = "The name of the launch template used by the auto-scale group"
Expand All @@ -129,6 +112,12 @@ variable "sensor_launch_template_volume_size" {
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
Expand Down Expand Up @@ -218,3 +207,15 @@ variable "fleet_no_proxy" {
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"
}