Skip to content

Commit f744ced

Browse files
Merge pull request #90 from kpankonen/monitoring
add option to disable enhanced monitoring on workers
2 parents 41eb60b + 0c4f27d commit f744ced

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
1010
### Added
1111

1212
- add spot_price option to aws_launch_configuration
13+
- add enable_monitoring option to aws_launch_configuration
1314

1415
### Changed
1516

variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ variable "workers_group_defaults" {
9494
pre_userdata = "" # userdata to pre-append to the default userdata.
9595
additional_userdata = "" # userdata to append to the default userdata.
9696
ebs_optimized = true # sets whether to use ebs optimization on supported types.
97+
enable_monitoring = true # Enables/disables detailed monitoring.
9798
public_ip = false # Associate a public ip address with a worker
9899
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.
99100
subnets = "" # A comma delimited string of subnets to place the worker nodes in. i.e. subnet-123,subnet-456,subnet-789

workers.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ resource "aws_launch_configuration" "workers" {
3030
key_name = "${lookup(var.worker_groups[count.index], "key_name", lookup(var.workers_group_defaults, "key_name"))}"
3131
user_data_base64 = "${base64encode(element(data.template_file.userdata.*.rendered, count.index))}"
3232
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))}"
33+
enable_monitoring = "${lookup(var.worker_groups[count.index], "enable_monitoring", lookup(var.workers_group_defaults, "enable_monitoring"))}"
3334
spot_price = "${lookup(var.worker_groups[count.index], "spot_price", lookup(var.workers_group_defaults, "spot_price"))}"
3435
count = "${var.worker_group_count}"
3536

0 commit comments

Comments
 (0)