Difference between revisions of "How to destroy all resources except one?"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
== See also == | == See also == | ||
− | * {{ | + | * {{terraform state}} |
+ | * {{terraform cmd}} | ||
[[Category:Terrafrom]] | [[Category:Terrafrom]] |
Revision as of 21:54, 27 February 2022
terraform state rm <resource_to_be_deleted>
See also
- 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: