Luces Huayhuaca
d72a413ef8
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.
2021-12-01 08:53:47 -08:00
..
2021-11-19 14:40:12 -06:00
2021-09-29 13:36:59 -07:00
2021-08-17 15:20:05 -07:00
2021-10-25 12:45:35 -04:00
2021-11-19 15:48:10 -05:00
2021-09-03 13:53:52 -04:00
2021-10-06 11:13:06 -04:00
2021-10-28 16:00:02 -04:00
2021-10-06 11:13:06 -04:00
2021-11-17 14:20:44 -08:00
2021-10-20 06:42:47 -07:00
2021-05-17 14:09:07 -07:00
2021-09-10 14:56:49 -07:00
2021-05-17 14:09:07 -07:00
2021-10-13 17:28:14 -04:00
2021-10-29 21:23:28 -05:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-11-11 12:28:10 +00:00
2021-05-17 14:09:07 -07:00
2021-08-17 15:20:05 -07:00
2021-10-28 11:51:39 -04:00
2021-05-17 14:09:07 -07:00
2021-10-29 14:41:05 -04:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-11-11 12:28:10 +00:00
2021-11-11 12:28:10 +00:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-10-01 14:43:58 -07:00
2021-10-28 19:29:09 -05:00
2021-11-23 10:39:42 -06:00
2021-11-19 14:40:12 -06:00
2021-05-17 14:09:07 -07:00
2021-10-28 11:51:39 -04:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:13 -05:00
2021-11-23 10:39:42 -06:00
2021-10-25 15:08:10 -04:00
2021-12-01 08:53:47 -08:00
2021-11-11 12:28:16 +00:00
2021-10-01 14:43:58 -07:00
2021-05-17 14:09:07 -07:00
2021-10-05 10:59:59 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-21 08:44:26 -04:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-10-01 14:43:58 -07:00
2021-10-28 19:29:21 -05:00
2021-05-17 14:09:07 -07:00
2021-10-01 14:43:58 -07:00
2021-05-17 14:09:07 -07:00
2021-09-10 14:56:49 -07:00
2021-05-19 12:56:16 -04:00
2021-05-19 12:56:16 -04:00
2021-05-19 12:56:16 -04:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:21 -05:00
2021-09-28 17:58:40 -04:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-10-28 19:29:09 -05:00
2021-11-09 13:09:36 -06:00
2021-11-09 13:09:36 -06:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-11-11 12:28:10 +00:00
2021-05-17 14:09:07 -07:00
2021-09-21 22:26:16 -05:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-08-30 13:59:14 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-13 13:54:11 -07:00
2021-10-13 13:54:11 -07:00
2021-10-28 19:29:09 -05:00
2021-10-28 19:29:09 -05:00
2021-10-28 19:29:09 -05:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00