Data sources for the LoadBalancer terraform resource



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.




Hey @francis ! Could you open a github issue in to better track the feature request? Thanks !

1 Like

Done! I created the issue.