vultr / terraform-provider-vultr

Terraform Vultr provider
https://www.terraform.io/docs/providers/vultr/
Mozilla Public License 2.0
193 stars 65 forks source link

[Feature] - Provide access to vpc ip addresses assigned to instances. #474

Open knusbaum opened 6 months ago

knusbaum commented 6 months ago

Is your feature request related to a problem? Please describe. As far as I can tell, it is not possible to access the ip_address field for the vpc (or vpc2) attached to an instance ( https://www.vultr.com/api/#tag/instances/operation/list-instance-vpc2 )

This makes networking nodes difficult since the VPC ip_address is not available for use in other resources.

Describe the solution you'd like I would like a field (maybe vpc2) for the vultr_instance type that contains at least the ip_address, but preferably the full structure returned by /v2/instances/{instance-id}/vpc2, in addition to or instead of the fields like vpc_ids and vpc2_ids ( https://github.com/vultr/terraform-provider-vultr/blob/8c46b8df09632e505df0548af15caa1ed7e609de/vultr/data_source_vultr_instance.go#L149-L153 )

optik-aper commented 4 months ago

I have a WIP with getting more of the VPC2 fields exposed in the TF resource. I'll see about regular VPC while I'm in there.