F5 Public Cloud Solutions > Event-Driven Service Discovery w/ HashiCorp Consul Terraform Sync and BIG-IP > Network Infrastructure Automation > Consul-Terraform-Sync Source | Edit on
Clean your environmentΒΆ
- Once you have completed the tutorial, you can clean up your environment by stopping consul-terraform-sync and using
terraform destroy
from each of the folders you deployed from.
Stop Consul-Terraform-Sync
You can stop Consul-Terraform-Sync by either using CTRL+C in the shell running the daemon or by sending the SIGINT signal to the process.
Before stopping, the daemon will log the requested shutdown.
...
[INFO] (cli) signal received to initiate graceful shutdown: terminated
[INFO] (ctrl) stopping controller
[INFO] (api) shutdown api server
[INFO] (cli) graceful shutdown
Destroy resources
cd ../fast
terraform destroy
...
Destroy complete! Resources: 2 destroyed.
cd ../terraform
terraform destroy
...
Destroy complete! Resources: 29 destroyed.