Unable to 'destroy' due to dependencies between domain and certificate #1278
Unanswered
stevecassidy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a configuration (here: https://github.com/FAIMS/FAIMS3/blob/main/infrastructure/digital-ocean/couchdb/loadbalancer.tf) where I'm setting up a load balancer and assigning a domain to it with an associated lets-encrypt certificate. This works fine but when I try to 'destroy' the configuration I get an error saying that the certificate can't be removed because the domain depends on it.
The only solution I've found is to go to the Digital Ocean control panel and select `Networking', open the load balancer and look at the Settings panel. Under Forwarding Rules, first add an HTTP rule, then delete the HTTPS rule. Then delete the certificate
via the doctl command line tool:
This then allows me to run
terraform destroy
.I think I have the depends_on settings right. I note that I also get a similar error if I try deleting the load balancer through the control panel (I think).
Is this a bug or am I missing something in my configuration?
Thanks,
Steve
Beta Was this translation helpful? Give feedback.
All reactions