diff --git a/internal/command/meta_backend.go b/internal/command/meta_backend.go index 8746c4366..4167964a9 100644 --- a/internal/command/meta_backend.go +++ b/internal/command/meta_backend.go @@ -779,7 +779,11 @@ func (m *Meta) backend_c_r_S(c *configs.Backend, cHash int, sMgr *clistate.Local // Get the backend type for output backendType := s.Backend.Type - m.Ui.Output(fmt.Sprintf(strings.TrimSpace(outputBackendMigrateLocal), s.Backend.Type)) + if s.Backend.Type == "cloud" { + m.Ui.Output(strings.TrimSpace(outputBackendMigrateLocalFromCloud)) + } else { + m.Ui.Output(fmt.Sprintf(strings.TrimSpace(outputBackendMigrateLocal), s.Backend.Type)) + } // Grab a purely local backend to get the local state if it exists localB, diags := m.Backend(&BackendOpts{ForceLocal: true, Init: true}) @@ -1360,6 +1364,9 @@ Terraform detected that the backend type changed from %q to Terraform Cloud. const outputBackendMigrateLocal = ` Terraform has detected you're unconfiguring your previously set %q backend. ` +const outputBackendMigrateLocalFromCloud = ` +Terraform has detected you're unconfiguring Terraform Cloud. +` const outputBackendReconfigure = ` [reset][bold]Backend configuration changed![reset]