hetznercloud / terraform-provider-hcloud

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

[Feature]: add data source `load_balancer_types` #945

Open simonostendorf opened 3 days ago

simonostendorf commented 3 days ago

What whould you like to see?

I would like to see a data source to read all existing lb types from the API (like it is already implemented for locations, datacenters and servers).

I don't think there is much more that can be said about this and no further examples can be given. The data sources mentioned above serve as an example.

apricote commented 3 days ago

Good suggestion, we should support every single resource in our API.

If anyone wants to pick this up before we get to this, you can check out the patterns we have in the datacenter data source. We are currently migrating to a new Terraform Plugin framework, so not every resource lends itself to be copied.

https://github.com/hetznercloud/terraform-provider-hcloud/tree/main/internal/datacenter