Skip to content

Commit

Permalink
Merge pull request #10 from MartinCanovas/master
Browse files Browse the repository at this point in the history
Update outputs.tf
  • Loading branch information
Nikita Dugar authored Oct 21, 2020
2 parents cfebd60 + 87af9a5 commit c2e5dd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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, [""])
description = "Public IP of instance (or EIP)."

}
Expand Down Expand Up @@ -54,4 +54,4 @@ output "subnet_id" {
output "instance_count" {
value = var.instance_count
description = "The count of instances."
}
}

0 comments on commit c2e5dd6

Please sign in to comment.