terraform-provider-vultr
terraform-provider-vultr copied to clipboard
[Feature] Get all internal ips of private network of instance
Is your feature request related to a problem? Please describe.
There is currently no way to get list of all internal ips of instance via TF. internal_ip
attribute contains only one ip if instance have only one private network. If instance have few private networks - internal_ip
contains empty string.
Describe the solution you'd like
Enrichment info from GET https://api.vultr.com/v2/instances/{instance-id}/private-networks
or (GET https://api.vultr.com/v2/instances/{instance-id}/ipv4
and GET https://api.vultr.com/v2/instances/{instance-id}/ipv6
)
Describe alternatives you've considered
data "vultr_instance_ipv4" "my_instance_ipv4"
also get only one internal ip.
We'll look into what we can do here