Skip to content

Commit c2e5dd6

Browse files
author
Nikita Dugar
authored
Merge pull request #10 from MartinCanovas/master
Update outputs.tf
2 parents cfebd60 + 87af9a5 commit c2e5dd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

outputs.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ output "az" {
1616
}
1717

1818
output "public_ip" {
19-
value = coalesce(aws_eip.default.*.public_ip, aws_instance.default.*.public_ip)
19+
value = concat(aws_eip.default.*.public_ip, aws_instance.default.*.public_ip, [""])
2020
description = "Public IP of instance (or EIP)."
2121

2222
}
@@ -54,4 +54,4 @@ output "subnet_id" {
5454
output "instance_count" {
5555
value = var.instance_count
5656
description = "The count of instances."
57-
}
57+
}

0 commit comments

Comments
 (0)