From 3163dc0026799360a873fc38c392d1faf6543b39 Mon Sep 17 00:00:00 2001 From: Barrett Clark Date: Wed, 1 Dec 2021 11:09:46 -0600 Subject: [PATCH] Fixes Issue #29959, Apply w/o init error message When going from a local backend to Terraform Cloud, if you skip the `terraform init` and run `terraform apply` this will give the user more clear instructions. --- internal/command/meta_backend.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/command/meta_backend.go b/internal/command/meta_backend.go index 825de47e6188..26f8622b8dc3 100644 --- a/internal/command/meta_backend.go +++ b/internal/command/meta_backend.go @@ -1513,7 +1513,8 @@ configuration or state have been made. const errBackendInitCloudMigration = ` Reason: %s. -Migrating to Terraform Cloud requires reinitialization, to discover which Terraform Cloud workspaces belong to this configuration and to optionally migrate existing state to the corresponding Terraform Cloud workspaces. +Changes to the Terraform Cloud configuration block require reinitialization, +to discover any changes to the available workspaces. To re-initialize, run: terraform init