From fbf2b7906fc62c11cf1a8a1f94d9556f89be4b59 Mon Sep 17 00:00:00 2001 From: themaniskshah Date: Tue, 7 Sep 2021 17:33:04 +0530 Subject: [PATCH] updated with old release --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 347a55b..4bc3fdc 100644 --- a/main.tf +++ b/main.tf @@ -39,7 +39,7 @@ resource "aws_instance" "default" { host_id = var.host_id cpu_core_count = var.cpu_core_count user_data = var.user_data != "" ? base64encode(file(var.user_data)) : "" - iam_instance_profile = var.instance_profile_count == "" ? join("", aws_iam_instance_profile.default.*.name) : var.instance_profile + iam_instance_profile = var.instance_profile_enabled == true ? join("", aws_iam_instance_profile.default.*.name) : var.instance_profile source_dest_check = var.source_dest_check ipv6_address_count = var.ipv6_address_count ipv6_addresses = var.ipv6_addresses