Skip to content

Commit

Permalink
Fix public_instances in aws
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Nov 15, 2024
1 parent adb3db7 commit 954bbae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/infrastructure.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

0 comments on commit 954bbae

Please sign in to comment.