diff --git a/data.tf b/data.tf new file mode 100644 index 0000000..e9448dc --- /dev/null +++ b/data.tf @@ -0,0 +1,3 @@ +data "hcloud_load_balancer" "lb11" { + name = "traefik" +} diff --git a/output.tf b/output.tf index 928445d..8198eca 100644 --- a/output.tf +++ b/output.tf @@ -7,3 +7,8 @@ output "agents_public_ip" { value = hcloud_server.agents.*.ipv4_address description = "The public IP addresses of the agent server." } + +output "traefik_public_ip" { + value = data.hcloud_load_balancer.lb11.ipv4 + description = "IPv4 Address of the Load Balancer" +}