Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 41c8a02

Browse files
committed
Toggle detailed monitoring
1 parent ecc77f8 commit 41c8a02

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

modules/nomad-cluster/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ resource "aws_launch_configuration" "launch_configuration" {
8585
placement_tenancy = var.tenancy
8686
associate_public_ip_address = var.associate_public_ip_address
8787

88-
ebs_optimized = var.root_volume_ebs_optimized
88+
enable_monitoring = var.enable_detailed_monitoring
89+
ebs_optimized = var.root_volume_ebs_optimized
8990

9091
root_block_device {
9192
volume_type = var.root_volume_type

modules/nomad-cluster/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,9 @@ variable "iam_permissions_boundary" {
239239
type = string
240240
default = null
241241
}
242+
243+
variable "enable_detailed_monitoring" {
244+
description = "Whether instances should have detailed monitoring enabled - this can incur additional cloudwatch costs"
245+
type = bool
246+
default = true
247+
}

0 commit comments

Comments
 (0)