equinix / terraform-provider-equinix

Terraform Equinix provider
https://deploy.equinix.com/labs/terraform-provider-equinix/
MIT License
46 stars 45 forks source link

query metal_device data sources by hardware_reservation_id #187

Open displague opened 3 years ago

displague commented 3 years ago

Originally from #86

It should also be possible to query metal_devices by hardware_reservation_id.

t0mk commented 3 years ago

This can be done by getting the hw reservation and then using the device_id (Computed) attribute https://registry.terraform.io/providers/equinix/metal/latest/docs/data-sources/hardware_reservation#device_id