From 954bbaefa01ffb424e62151b6240591f28c1a3bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix-Antoine=20Fortin?= Date: Fri, 15 Nov 2024 11:47:41 -0500 Subject: [PATCH] Fix public_instances in aws --- aws/infrastructure.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/infrastructure.tf b/aws/infrastructure.tf index 3249077b..39155f7b 100644 --- a/aws/infrastructure.tf +++ b/aws/infrastructure.tf @@ -183,7 +183,7 @@ locals { } public_instances = { for host in keys(module.design.instances_to_build): - host => merge(module.configuration.inventory[host], {id=try(!contains(module.configuration.inventory[host].tags, "spot") ? aws_instance.instances[host].id : aws_spot_instance_request.spot_instances[host].spot_instance_id, "")}) + host => merge(module.configuration.inventory[host], {id=try(aws_instance.instances[host].id, "")}) if contains(module.configuration.inventory[host].tags, "public") } }