1
0
Fork 0

count servers

This commit is contained in:
chris 2022-05-29 13:37:13 +02:00
parent ea71b3bf56
commit cc12c598e9
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ resource "hcloud_network" "three_web_private" {
} }
resource "hcloud_server_network" "three_web_network" { resource "hcloud_server_network" "three_web_network" {
count = var.instance_count count = length(hcloud_server.web-server)
server_id = hcloud_server.web-server[count.index].id server_id = hcloud_server.web-server[count.index].id
subnet_id = hcloud_network_subnet.three_web_private_subnet.id subnet_id = hcloud_network_subnet.three_web_private_subnet.id
} }