From 0c4f27d38a2727388ca98442737a1e9b178045fe Mon Sep 17 00:00:00 2001 From: Kevin Pankonen Date: Mon, 13 Aug 2018 07:38:35 -0700 Subject: [PATCH] add option to disable enhanced monitoring on workers --- CHANGELOG.md | 1 + variables.tf | 1 + workers.tf | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a01afe2..5135b73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ project adheres to [Semantic Versioning](http://semver.org/). ### Added - add spot_price option to aws_launch_configuration +- add enable_monitoring option to aws_launch_configuration ### Changed diff --git a/variables.tf b/variables.tf index 6618fdf..c7b71b0 100644 --- a/variables.tf +++ b/variables.tf @@ -94,6 +94,7 @@ variable "workers_group_defaults" { pre_userdata = "" # userdata to pre-append to the default userdata. additional_userdata = "" # userdata to append to the default userdata. ebs_optimized = true # sets whether to use ebs optimization on supported types. + enable_monitoring = true # Enables/disables detailed monitoring. public_ip = false # Associate a public ip address with a worker kubelet_node_labels = "" # This string is passed directly to kubelet via --node-lables= if set. It should be comma delimited with no spaces. If left empty no --node-labels switch is added. subnets = "" # A comma delimited string of subnets to place the worker nodes in. i.e. subnet-123,subnet-456,subnet-789 diff --git a/workers.tf b/workers.tf index e7fa0f0..070ee86 100644 --- a/workers.tf +++ b/workers.tf @@ -30,6 +30,7 @@ resource "aws_launch_configuration" "workers" { key_name = "${lookup(var.worker_groups[count.index], "key_name", lookup(var.workers_group_defaults, "key_name"))}" user_data_base64 = "${base64encode(element(data.template_file.userdata.*.rendered, count.index))}" ebs_optimized = "${lookup(var.worker_groups[count.index], "ebs_optimized", lookup(local.ebs_optimized, lookup(var.worker_groups[count.index], "instance_type", lookup(var.workers_group_defaults, "instance_type")), false))}" + enable_monitoring = "${lookup(var.worker_groups[count.index], "enable_monitoring", lookup(var.workers_group_defaults, "enable_monitoring"))}" spot_price = "${lookup(var.worker_groups[count.index], "spot_price", lookup(var.workers_group_defaults, "spot_price"))}" count = "${var.worker_group_count}"