Skip to content

Update command help text for state migrate command#38571

Merged
SarahFrench merged 3 commits into
mainfrom
state-migrate-help-text
May 14, 2026
Merged

Update command help text for state migrate command#38571
SarahFrench merged 3 commits into
mainfrom
state-migrate-help-text

Conversation

@SarahFrench
Copy link
Copy Markdown
Member

@SarahFrench SarahFrench commented May 13, 2026

Minor change to the help text.

  1. Making the -upgrade flag's description more specific (you can only upgrade a provider used for PSS via this command)
  2. Adding default value info to the two lock-file flags.

The lock file flags have an equivalent function to the -state-provider-lock flag in #38461 and when that flag isn't supplied Terraform will look -optimistically- at the .terraform.lock.hcl file in the working directory for a usable lock,

See this test case in TestInit_stateStore_newWorkingDir_inAutomationProviderApproval:

t.Run("a state store provider downloaded via HTTP can be automatically approved if it already exists in the .terraform.lock.hcl file", func(t *testing.T) {

Target Release

1.16.x

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

@SarahFrench SarahFrench added the no-changelog-needed Add this to your PR if the change does not require a changelog entry label May 13, 2026
@SarahFrench SarahFrench requested a review from radeksimko May 13, 2026 17:45
@SarahFrench SarahFrench marked this pull request as ready for review May 13, 2026 17:45
@SarahFrench SarahFrench requested a review from a team as a code owner May 13, 2026 17:45
@SarahFrench SarahFrench merged commit 2e5a89a into main May 14, 2026
18 of 19 checks passed
@SarahFrench SarahFrench deleted the state-migrate-help-text branch May 14, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog-needed Add this to your PR if the change does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants