change ebs_optimized mapping to list where not supported (#561)

* change ebs_optimized mapping to list where not supported

* update changelog
This commit is contained in:
Jeff Hastings
2019-10-21 06:57:29 -04:00
committed by Max Williams
parent 1be1a02e23
commit 2e2f2acada
4 changed files with 48 additions and 163 deletions

View File

@@ -182,15 +182,14 @@ resource "aws_launch_configuration" "workers" {
ebs_optimized = lookup(
var.worker_groups[count.index],
"ebs_optimized",
lookup(
local.ebs_optimized,
! contains(
local.ebs_optimized_not_supported,
lookup(
var.worker_groups[count.index],
"instance_type",
local.workers_group_defaults["instance_type"],
),
false,
),
local.workers_group_defaults["instance_type"]
)
)
)
enable_monitoring = lookup(
var.worker_groups[count.index],