1
0
Fork 0
terraform-playground/three-web-hosts/output.tf

20 lines
432 B
HCL

output "lb_ip" {
description = "Load balancer IP address"
value = hcloud_load_balancer.three_web_load_balancer.ipv6
}
output "web_ips" {
description = "Test VM IP"
value = {
for server in hcloud_server.web-server :
server.name => server.ipv6_address
}
}
output "web_ipv4" {
description = "Test VM legacy IP"
value = {
for server in hcloud_server.web-server :
server.name => server.ipv4_address
}
}