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

Commit

Permalink
Toggle detailed monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mark hender committed Aug 16, 2021
1 parent ecc77f8 commit 7fa17c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/nomad-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions modules/nomad-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 7fa17c3

Please sign in to comment.