Configure 'cpu_credits' for workers (#253) (#426)

* Configure 'cpu_credits' for workers (#253)

* Updated CHANGELOG(#253)

* Moved default to settings for launch templates(#253)
This commit is contained in:
Alexander Shinkarenko
2019-07-12 19:44:54 +07:00
committed by Max Williams
parent 4b1df0c0af
commit 34b74518e8
4 changed files with 18 additions and 0 deletions

View File

@@ -200,6 +200,14 @@ resource "aws_launch_template" "workers_launch_template" {
),
)
credit_specification {
cpu_credits = lookup(
var.worker_groups_launch_template[count.index],
"cpu_credits",
local.workers_group_defaults["cpu_credits"]
)
}
monitoring {
enabled = lookup(
var.worker_groups_launch_template[count.index],