count servers
This commit is contained in:
parent
ea71b3bf56
commit
cc12c598e9
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ resource "hcloud_network" "three_web_private" {
|
|||
}
|
||||
|
||||
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
|
||||
subnet_id = hcloud_network_subnet.three_web_private_subnet.id
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue