I want to run “terraform state” commands on Terraform Cloud to escape from an erroneous state. Is it possible? If not, how can I resolve the issue?
Hi! The remote backend (using Terraform Cloud on your local command line) currently does not support remote
state commands. If you really do need to do something to manually correct your state in Terraform Cloud, one workaround I can think of is to use the State Versions API to pull and manually post your corrected state. Note the warning there about using caution with this sort of mechanism, however (most of the time this API is used for the initial migration from OSS to Terraform Cloud or CI/CD pipelines manually posting state outside of VCS).
I finally solved the issue by using CLI. The remote backend supports