Published 7月 03, 2022 by with 0 comment

Terraform Note 01 - Destroy




#terraform destroy all the resources 
terraform destroy

#terraform destroy with -target flag allows us to destroy the specific resource.
terraform destroy -target "Resource Type "."Local Resource Name"
terraform destroy -target aws_instance.HelloWorld


Reference:
1. Terraform Command: destroy

2. Destroy Infrastructure - AWS

3. Terraform Lab 01 - Destroy


最初發表 / 最後更新: 2022.07.03 / 2022.07.03

0 comments:

張貼留言