count servers
This commit is contained in:
parent
ea71b3bf56
commit
cc12c598e9
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue