diff --git a/modules/nomad-cluster/main.tf b/modules/nomad-cluster/main.tf index cc596d7..fbfbf26 100644 --- a/modules/nomad-cluster/main.tf +++ b/modules/nomad-cluster/main.tf @@ -85,7 +85,8 @@ resource "aws_launch_configuration" "launch_configuration" { placement_tenancy = var.tenancy associate_public_ip_address = var.associate_public_ip_address - ebs_optimized = var.root_volume_ebs_optimized + enable_monitoring = var.enable_detailed_monitoring + ebs_optimized = var.root_volume_ebs_optimized root_block_device { volume_type = var.root_volume_type diff --git a/modules/nomad-cluster/variables.tf b/modules/nomad-cluster/variables.tf index fc334a1..025af38 100644 --- a/modules/nomad-cluster/variables.tf +++ b/modules/nomad-cluster/variables.tf @@ -239,3 +239,9 @@ variable "iam_permissions_boundary" { type = string default = null } + +variable "enable_detailed_monitoring" { + description = "Whether instances should have detailed monitoring enabled - this can incur additional cloudwatch costs" + type = bool + default = true +}