Closed DanielHabenicht closed 3 years ago
Although its not described in the documentation page I would conclude that the cascade option is a simple ?cascade=true
query parameter.
It can't be implemented ― this feature is not supported, documentation is going to be updated in the nearest future. So let's get some new data sources :smile:
Mhm, just thought it through and it does not make any sense to import the listeners and backends because they are not managed by terraform anyway so I can't really delete them.
Any reason on why it's not supported anymore?
@DanielHabenicht As far as I know, it was removed due to someone accidentally removing all their infrastructure ¯\_(ツ)_/¯
. Of the good news: we're implementing octavia-proxy
now - it is going to have a cascading deletion functionality. Though it's hard to say when it will be integrated into the OTC exactly.
Description of the enhancement
The Documentation describes an option to delete the Load-Balancer and all its resources: "When you select cascade delete, listeners, backend server groups, backend servers, health checks, forwarding policies, forwarding rules, whitelists, and tags associated with the load balancer will be deleted."
It would be great if this could also be exposed to the terraform ressource like this:
Reason
For my current deployments we are creating Load-Balancers by annotating services, but after destroying the Service the Load-Balancer Backend Group is not always destroyed as well resulting in errors in the teardown:
We could import everything before but a straightforward
cascade
option would be better. (Otherwise I would have to create some data source requests (:)