gomorpheus / terraform-provider-morpheus

Terraform Morpheus provider
MIT License
17 stars 21 forks source link

Add morpheus_network_subnet data #224

Closed aponchaut closed 7 months ago

aponchaut commented 7 months ago

Hello,

I want to retrieve subnet information with a terraform data source but the information is limited to VNET network with this terraform resource: morpheus_network (Data Source)

Could you add a terraform data object to get subnet information from a vnet id ? Perhaps with an optional subnet name field to allow a precise search if need.

Regards

martezr commented 7 months ago

@aponchaut Is there any additional information about the subnet that you would need returned other than the ID of the subnet?

martezr commented 7 months ago

The morpheus_network_subnet data source has been added in the latest release of the Terraform provider - https://registry.terraform.io/providers/gomorpheus/morpheus/latest/docs/data-sources/network_subnet