Sometimes it can be necessary to change a key in the Terraform Cloud state without changing the Terraform files.
backend.tf
definition to:terraform { backend "remote" { organization = "org" hostname = "app.terraform.io" workspaces { name = "workspace" } }}
~/.terraformrc
is availablecredentials "app.terraform.io" { token = "token from https://app.terraform.io/app/settings/tokens"}
terraform state list
terraform state rm 'module.something.something_config_map.auth[0]'
~/.terraformrc
file and undo the backend.tf
changes to avoid accidents