Data sources for the LoadBalancer terraform resource

#1

Hi,

It would be nice if we could use a loadbalance_ip as a datasource instead of resource. Since it is often the case that one wants to reuse an IP, it makes sense to refer to it from a datasource rather than create (or import) it as a resource.

The main reason is that when doing a terraform destroy one doesn’t want to delete the ip used for the load balancer - quite the opposite. While in some circumstances it is ok to recreate a new load balancer, an ip for the load balancer is nice to preserve.

Best,

Francis

#2

Hey @francis ! Could you open a github issue in https://github.com/terraform-providers/terraform-provider-scaleway to better track the feature request? Thanks !

1 Like
#3

Done! I created the issue.