Difference between revisions of "Terraform destroy"
Jump to navigation
Jump to search
(→Errors) |
(→Errors) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
* [[Example execution terraform destroy]] | * [[Example execution terraform destroy]] | ||
* [[Example execution terraform destroy aws_instance]] | * [[Example execution terraform destroy aws_instance]] | ||
− | |||
== Related == | == Related == | ||
Line 23: | Line 22: | ||
* <code>[[Still destroying...]]</code> | * <code>[[Still destroying...]]</code> | ||
* [[Destroy complete! Resources: 39 destroyed.]] | * [[Destroy complete! Resources: 39 destroyed.]] | ||
+ | * [[Acquiring state lock. This may take a few moments...]] | ||
== Errors == | == Errors == | ||
* <code>[[DependencyViolation]]: .../... has dependencies and cannot be deleted.</code> | * <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== | ==Related terms== | ||
− | *[[Example execution terraform destroy aws instance]] | + | * [[Example execution terraform destroy aws instance]] |
+ | * [[Editing Error: 0m Error: ERROR cluster with name not found]] | ||
== Activities == | == Activities == |
Latest revision as of 23:20, 11 February 2024
terraform destroy
destroy all remote objects managed by a particular Terraform configuration.
https://www.terraform.io/docs/cli/commands/destroy.html
Contents
Examples[edit]
terraform destroy
terraform destroy -auto-approve
terraform destroy -target=your_resource
terraform destroy -var-file="your_file.tfvars"
terraform destroy --help
Executions examples[edit]
Related[edit]
terraform show
terraform apply
terraform apply -destroy
terraform state rm
Still destroying...
- Destroy complete! Resources: 39 destroyed.
- Acquiring state lock. This may take a few moments...
Errors[edit]
DependencyViolation: .../... has dependencies and cannot be deleted.
Error: deleting EBS Volume
- 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[edit]
- Example execution terraform destroy aws instance
- Editing Error: 0m Error: ERROR cluster with name not found
Activities[edit]
See also[edit]
terraform
[destroy
|-target=resource | --help ]
Still destroying..., Error: deleting, DependencyViolation
- Terraform configuration files, Terraform state files:
.tf
,.tfvars
,main.tf, outputs.tf
,variables.tf
,.terraform.d/
,terraform init
,providers.tf
,.terraform/
,terraform.tfstate
,.terraform.lock.hcl
,terraform.tfstate.d, override.tf, versions.tf
Advertising: