command/meta_backend: Prompt to select workspace before saving backend config (#29945)
command/meta_backend: Prompt to select workspace before saving backend config (#29945)

When terraform detects that a user has no workspaces that map to their current configuration, it will prompt the user to create a new workspace and enter a value name. If the user ignores the prompt and exits it, the legacy backend (terraform.tfstate) will be left in a awkward state:

1. This saved backend config will show a diff for the JSON attributes "serial", "tags" and "hash"
2. "Terraform workspace list" will show an empty list
3. "Terraform apply" will run successfully using the previous workspace, from the previous config, not the one from the current saved backend config
4. The cloud config is not reflective of the current working directory

Solution: If the user exits the prompt, the saved backend config should not be updated because they did not select a new workspace. They are back at the beginning where they are force to re run the init cmd again before proceeding with new changes.
tommynsong/terraform,tommynsong/terraform,hashicorp/terraform,hashicorp/terraform,rnaveiras/terraform,tommynsong/terraform,rnaveiras/terraform,rnaveiras/terraform,hashicorp/terraform