pulumi/changelog/pending
Abhinav Gupta ac1793b9d5
Merge #12438
{cli, filestate}: Add 'state upgrade' command

Adds a new `pulumi state upgrade` command
that will upgrade the state for the current state storage
to the latest version supported by that format *concurrently*.

This is a no-op for httpstate,
but for filestate, this will migrate from unversioned storage
to the project-based versioned format.

It includes a confirmation message, informing users that
the state will be inaccessible from old CLIs after the upgrade.
They must type 'yes' to accept this.

A note on upgrade order:
We attempt to create the new meta.yaml file before moving the stack files.
This prevents us from leaving the bucket in an unreadable state
if we don't have write permission for the meta.yaml.

Extracted from #12134
2023-03-31 19:21:46 -07:00
..
20230128--backend-filestate--the-filestate-backend-now-supports-project-scoped-stacks.yaml filestate: Support opting into legacy layout 2023-03-31 13:21:37 -07:00
20230316--cli-state--add-upgrade-subcommand-to-upgrade-a-pulumi-self-managed-state-to-use-project-layout.yaml {cli, filestate}: Add 'state upgrade' command 2023-03-31 16:29:05 -07:00
20230328--backend-filestate--print-a-warning-if-a-project-scoped-storage-has-non-project-stacks-in-it.yaml filestate: Warn about mixed states 2023-03-31 13:21:36 -07:00
20230330--cli-display--fixes-a-bug-in-the-interactive-update-tree-display-where-small-terminals-would-cause-pulumi-to-panic.yaml Fixed panic in display on terminals with few rows and columns. 2023-03-30 16:16:48 -07:00
20230331--sdkgen-dotnet--fix-a-whitespace-error-in-generated-csproj-files.yaml Fix whitespace in generated .csproj files 2023-03-31 23:33:02 +01:00