hetznercloud / terraform-provider-hcloud

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

[Feature]: add primary private_ipv4_address datasource for hcloud_server #551

Closed marcoatenway closed 2 years ago

marcoatenway commented 2 years ago

What whould you like to see?

the assigned private ip address should be exported as a datasource the same as the public IP address:

${hcloud_server.fancy-vm0.private_ipv4_address}

This is necessary to build highly dynamic infrastructure where you dont define any addresses because they are registered i.e. in DNS by terraform

4ND3R50N commented 2 years ago

Hey :-)

The private IP for the server should be accessible via: hcloud_server.serverX.network.ip

marcoatenway commented 2 years ago

Hey :-)

The private IP for the server should be accessible via: hcloud_server.serverX.network.ip

@4ND3R50N No, its not!