diff --git a/outputs.tf b/outputs.tf index 0b4b8fe..6f9ee76 100644 --- a/outputs.tf +++ b/outputs.tf @@ -16,7 +16,7 @@ output "az" { } output "public_ip" { - value = coalesce(aws_eip.default.*.public_ip, aws_instance.default.*.public_ip) + value = concat(aws_eip.default.*.public_ip, aws_instance.default.*.public_ip, [""])[0] description = "Public IP of instance (or EIP)." } @@ -54,4 +54,4 @@ output "subnet_id" { output "instance_count" { value = var.instance_count description = "The count of instances." -} \ No newline at end of file +}