Editing Terraform destroy

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
<code>terraform destroy</code> destroy all remote objects managed by a particular Terraform configuration.
+
* https://www.terraform.io/docs/cli/commands/destroy.html
  
https://www.terraform.io/docs/cli/commands/destroy.html
 
 
== Examples ==
 
 
* <code>terraform destroy</code>
 
* <code>terraform destroy</code>
* <code>[[terraform destroy -auto-approve]]</code>
+
* <code>terraform destroy -auto-approve</code>
* <code>terraform destroy [[-target]]=your_resource</code>
+
* <code>terraform destroy [[-var-fil]]e="your_file.tfvars"</code>
 
 
* <code>[[terraform destroy --help]]</code>
 
* <code>[[terraform destroy --help]]</code>
  
Line 15: Line 11:
 
* [[Example execution terraform destroy aws_instance]]
 
* [[Example execution terraform destroy aws_instance]]
  
== Related ==
+
== Related commands ==
 
* <code>[[terraform show]]</code>
 
* <code>[[terraform show]]</code>
 
* <code>[[terraform apply]]</code>
 
* <code>[[terraform apply]]</code>
* <code>[[terraform apply -destroy]]</code>
 
* <code>[[terraform state rm]]</code>
 
* <code>[[Still destroying...]]</code>
 
* [[Destroy complete! Resources: 39 destroyed.]]
 
* [[Acquiring state lock. This may take a few moments...]]
 
 
== Errors ==
 
* <code>[[DependencyViolation]]: .../... has dependencies and cannot be deleted.</code>
 
* <code>[[Error: deleting EBS Volume]]</code>
 
* [[AWS Error: failed to refresh cached credentials]]
 
* [[AWS Error: A Profile was specified along with the environment variables "AWS ACCESS KEY ID" and "AWS SECRET ACCESS KEY". The Profile is now used instead of the environment variable credentials.]]
 
 
==Related terms==
 
* [[Example execution terraform destroy aws instance]]
 
* [[Editing Error: 0m Error: ERROR cluster with name not found]]
 
 
== Activities ==
 
* [[How to destroy all resources except one?]]
 
  
== See also ==
+
==See also ==
* {{terraform destroy}}
+
* {{terraform cmd}}
* {{tf files}}
 
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: