use default_iam_role_id interpolation for aws_iam_instance_profile (#489)

This commit is contained in:
Thierno IB. BARRY
2019-09-11 18:25:33 +02:00
committed by Max Williams
parent 2254ab709e
commit 4264a5fe6e
5 changed files with 39 additions and 38 deletions

View File

@@ -339,7 +339,7 @@ resource "aws_iam_instance_profile" "workers_launch_template" {
role = lookup(
var.worker_groups_launch_template[count.index],
"iam_role_id",
local.workers_group_defaults["iam_role_id"],
local.default_iam_role_id,
)
path = var.iam_path
}