@@ -262,6 +262,46 @@ var MessageRegistry map[InitMessageCode]InitMessage = map[InitMessageCode]InitMe
262262 HumanValue : "[reset][green]\n \n Successfully unset the state store %q. Terraform will now operate locally." ,
263263 JSONValue : "Successfully unset the state store %q. Terraform will now operate locally." ,
264264 },
265+ "backend_configured_success" : {
266+ HumanValue : backendConfiguredSuccessHuman ,
267+ JSONValue : backendConfiguredSuccessJSON ,
268+ },
269+ "backend_configured_unset" : {
270+ HumanValue : backendConfiguredUnsetHuman ,
271+ JSONValue : backendConfiguredUnsetJSON ,
272+ },
273+ "backend_migrate_to_cloud" : {
274+ HumanValue : "Migrating from backend %q to HCP Terraform." ,
275+ JSONValue : "Migrating from backend %q to HCP Terraform." ,
276+ },
277+ "backend_migrate_from_cloud" : {
278+ HumanValue : "Migrating from HCP Terraform to backend %q." ,
279+ JSONValue : "Migrating from HCP Terraform to backend %q." ,
280+ },
281+ "backend_cloud_change_in_place" : {
282+ HumanValue : "HCP Terraform configuration has changed." ,
283+ JSONValue : "HCP Terraform configuration has changed." ,
284+ },
285+ "backend_migrate_type_change" : {
286+ HumanValue : backendMigrateTypeChangeHuman ,
287+ JSONValue : backendMigrateTypeChangeJSON ,
288+ },
289+ "backend_reconfigure" : {
290+ HumanValue : backendReconfigureHuman ,
291+ JSONValue : backendReconfigureJSON ,
292+ },
293+ "backend_migrate_local" : {
294+ HumanValue : backendMigrateLocalHuman ,
295+ JSONValue : backendMigrateLocalJSON ,
296+ },
297+ "backend_cloud_migrate_local" : {
298+ HumanValue : "Migrating from HCP Terraform or Terraform Enterprise to local state." ,
299+ JSONValue : "Migrating from HCP Terraform or Terraform Enterprise to local state." ,
300+ },
301+ "state_store_migrate_local" : {
302+ HumanValue : stateMigrateLocalHuman ,
303+ JSONValue : stateMigrateLocalJSON ,
304+ },
265305 "empty_message" : {
266306 HumanValue : "" ,
267307 JSONValue : "" ,
@@ -302,6 +342,26 @@ const (
302342
303343 // InitConfigError indicates problems encountered during initialisation
304344 InitConfigError InitMessageCode = "init_config_error"
345+ // BackendConfiguredSuccessMessage indicates successful backend configuration
346+ BackendConfiguredSuccessMessage InitMessageCode = "backend_configured_success"
347+ // BackendConfiguredUnsetMessage indicates successful backend unsetting
348+ BackendConfiguredUnsetMessage InitMessageCode = "backend_configured_unset"
349+ // BackendMigrateToCloudMessage indicates migration to HCP Terraform
350+ BackendMigrateToCloudMessage InitMessageCode = "backend_migrate_to_cloud"
351+ // BackendMigrateFromCloudMessage indicates migration from HCP Terraform
352+ BackendMigrateFromCloudMessage InitMessageCode = "backend_migrate_from_cloud"
353+ // BackendCloudChangeInPlaceMessage indicates HCP Terraform configuration change
354+ BackendCloudChangeInPlaceMessage InitMessageCode = "backend_cloud_change_in_place"
355+ // BackendMigrateTypeChangeMessage indicates backend type change
356+ BackendMigrateTypeChangeMessage InitMessageCode = "backend_migrate_type_change"
357+ // BackendReconfigureMessage indicates backend reconfiguration
358+ BackendReconfigureMessage InitMessageCode = "backend_reconfigure"
359+ // BackendMigrateLocalMessage indicates migration to local backend
360+ BackendMigrateLocalMessage InitMessageCode = "backend_migrate_local"
361+ // BackendCloudMigrateLocalMessage indicates migration from cloud to local
362+ BackendCloudMigrateLocalMessage InitMessageCode = "backend_cloud_migrate_local"
363+ // StateMigrateLocalMessage indicates migration from state store to local
364+ StateMigrateLocalMessage InitMessageCode = "state_store_migrate_local"
305365 // FindingMatchingVersionMessage indicates that Terraform is looking for a provider version that matches the constraint during installation
306366 FindingMatchingVersionMessage InitMessageCode = "finding_matching_version_message"
307367 // InstalledProviderVersionInfo describes a successfully installed provider along with its version
@@ -433,3 +493,40 @@ with the configuration, described below.
433493The Terraform configuration must be valid before initialization so that
434494Terraform can determine which modules and providers need to be installed.
435495`
496+
497+ const backendConfiguredSuccessHuman = `[reset][green]
498+ Successfully configured the backend %q! Terraform will automatically
499+ use this backend unless the backend configuration changes.`
500+
501+ const backendConfiguredSuccessJSON = `Successfully configured the backend %q! Terraform will automatically
502+ use this backend unless the backend configuration changes.`
503+
504+ const backendConfiguredUnsetHuman = `[reset][green]
505+
506+ Successfully unset the backend %q. Terraform will now operate locally.`
507+
508+ const backendConfiguredUnsetJSON = `Successfully unset the backend %q. Terraform will now operate locally.`
509+
510+ const backendMigrateTypeChangeHuman = `[reset]Terraform detected that the backend type changed from %q to %q.
511+ `
512+
513+ const backendMigrateTypeChangeJSON = `Terraform detected that the backend type changed from %q to %q.`
514+
515+ const backendReconfigureHuman = `[reset][bold]Backend configuration changed![reset]
516+
517+ Terraform has detected that the configuration specified for the backend
518+ has changed. Terraform will now check for existing state in the backends.
519+ `
520+
521+ const backendReconfigureJSON = `Backend configuration changed!
522+
523+ Terraform has detected that the configuration specified for the backend
524+ has changed. Terraform will now check for existing state in the backends.`
525+
526+ const backendMigrateLocalHuman = `Terraform has detected you're unconfiguring your previously set %q backend.`
527+
528+ const backendMigrateLocalJSON = `Terraform has detected you're unconfiguring your previously set %q backend.`
529+
530+ const stateMigrateLocalHuman = `Terraform has detected you're unconfiguring your previously set %q state store.`
531+
532+ const stateMigrateLocalJSON = `Terraform has detected you're unconfiguring your previously set %q state store.`
0 commit comments