In this activity you will:
- Destroy the lab deployment
Destroy the Deployment
When deploying infrastructure in the public cloud it is important to tear it down when it is no longer needed. Otherwise you will end up paying for services that are no longer needed. We'll need to go back to the deployment directory and use Terraform to destroy the VM-Series instance we deployed at the start of the lab.
Change into the
$ cd ../deployment
Tell Terraform to destroy the contents of its plan files.
$ terraform destroy
Delete the GCP project with the following
gcloud projects command.
$ gcloud projects delete terraform-ansible-lab