hetznercloud / terraform-provider-hcloud

Terraform Hetzner Cloud provider
https://registry.terraform.io/providers/hetznercloud/hcloud/latest
Mozilla Public License 2.0
518 stars 74 forks source link

[Feature]: Data Source for Server Network #648

Open kimdre opened 1 year ago

kimdre commented 1 year ago

What whould you like to see?

I would like to be able to retrieve the internal IP addresses of servers that are assigned to a subnet in hcloud_server_network. Use case: I try to migrate my local bind zones to terraform so I can use my hcloud and hetzner_dns data for it and this feature would come in handy.

Example

Data Source

data "hcloud_server_network" "subnet_1" {
  id = "1234"
}
data "hcloud_server_network" "subnet_2" {
  network_id = "1234"
}
data "hcloud_server_network" "subnet_3" {
  server_id = "1234"
}

Returns

List of server_network (?)

github-actions[bot] commented 1 year ago

This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs.