Difference between revisions of "How to destroy all resources except one?"
Jump to navigation
Jump to search
m (Welcome moved page How to delete all resources except one? to How to destroy all resources except one?) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
== Related == | == Related == | ||
− | * <code>[[terraform destroy]]</code> | + | * <code>[[terraform destroy]]</code> |
+ | * <code>[[terraform apply -replace]]</code> | ||
== See also == | == See also == | ||
Line 8: | Line 9: | ||
* {{terraform cmd}} | * {{terraform cmd}} | ||
− | [[Category: | + | [[Category:Terraform]] |
Latest revision as of 22:28, 27 February 2022
terraform state rm <resource_to_be_deleted>
Related[edit]
See also[edit]
- Terraform state:
terraform [ state | replace-provider | mv ]
,backend.tf
, Remote state backends to manage Terraform state, State locking,terraform force-unlock
terraform
[untaint | fmt
|apply
|show
|state
|init | plan | console | output
|validate
|destroy
|debug
|import
|providers
|get
|graph
|workspaces
|resource
|login
|-var-file
|state mv
|state pull
|state push
|state replace-provider
|state rm
|force-unlock
|env
|tfe
|--version
|remote-exec
|delete on termination
| deprecated commands |terraform --help
]
Advertising: