Add enabled_metrics attributes to autoscaling_group (#256)

* make enabled_metrics property configurable

* update changelog
This commit is contained in:
Stefano Zaninetta
2019-01-30 11:50:41 +01:00
committed by Max Williams
parent dfd5a8f808
commit 39f30e9d58
4 changed files with 5 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ resource "aws_autoscaling_group" "workers" {
vpc_zone_identifier = ["${split(",", coalesce(lookup(var.worker_groups[count.index], "subnets", ""), local.workers_group_defaults["subnets"]))}"]
protect_from_scale_in = "${lookup(var.worker_groups[count.index], "protect_from_scale_in", local.workers_group_defaults["protect_from_scale_in"])}"
suspended_processes = ["${compact(split(",", coalesce(lookup(var.worker_groups[count.index], "suspended_processes", ""), local.workers_group_defaults["suspended_processes"])))}"]
enabled_metrics = ["${compact(split(",", coalesce(lookup(var.worker_groups[count.index], "enabled_metrics", ""), local.workers_group_defaults["enabled_metrics"])))}"]
count = "${var.worker_group_count}"
tags = ["${concat(