ilyesedina / Terraform

12 hands on labs from a Terraform course to improve my skills
0 stars 0 forks source link

Terraform isn't destroying all resources as expected #16

Open dkEdiIly opened 8 months ago

dkEdiIly commented 8 months ago

When executing terraform destroy, not all resources are being removed as anticipated, leading to an incomplete teardown of the infrastructure managed by Terraform.

Reproduction Steps:

  1. Apply changes using terraform apply to create the resources. Verify the number of resources to be created (e.g., "18 to create").
  2. Attempt to destroy the resources using terraform destroy. Note the output of the terraform destroy command, which indicates the number of resources Terraform intends to destroy (e.g., "13 to destroy").

Expected Behavior: All resources created by Terraform should be destroyed when running terraform destroy, resulting in a complete teardown of the infrastructure.

Actual Behavior: Not all resources are being destroyed as expected, leading to an incomplete teardown of the infrastructure.