diff --git a/cli/internal/cmd/applyterraform.go b/cli/internal/cmd/applyterraform.go index 68959d7f0..18584ff77 100644 --- a/cli/internal/cmd/applyterraform.go +++ b/cli/internal/cmd/applyterraform.go @@ -71,13 +71,15 @@ func (a *applyCmd) planTerraformMigration(cmd *cobra.Command, conf *config.Confi // u.upgrader.AddManualStateMigration(migration) // } - return a.clusterUpgrader.PlanClusterUpgrade(cmd.Context(), cmd.OutOrStdout(), vars, conf.GetProvider()) + a.spinner.Start("Checking for infrastructure changes", false) + defer a.spinner.Stop() + return a.clusterUpgrader.PlanClusterUpgrade(cmd.Context(), a.spinner, vars, conf.GetProvider()) } // migrateTerraform migrates an existing Terraform state and the post-migration infrastructure state is returned. func (a *applyCmd) migrateTerraform(cmd *cobra.Command, conf *config.Config, upgradeDir string) (state.Infrastructure, error) { // Ask for confirmation first - fmt.Fprintln(cmd.OutOrStdout(), "The upgrade requires a migration of Constellation cloud resources by applying an updated Terraform template. Please manually review the suggested changes below.") + cmd.Println("The upgrade requires a migration of Constellation cloud resources by applying an updated Terraform template.") if !a.flags.yes { ok, err := askToConfirm(cmd, "Do you want to apply the Terraform migrations?") if err != nil { diff --git a/cli/internal/terraform/terraform/azure/main.tf b/cli/internal/terraform/terraform/azure/main.tf index 4e5370510..83e880664 100644 --- a/cli/internal/terraform/terraform/azure/main.tf +++ b/cli/internal/terraform/terraform/azure/main.tf @@ -288,4 +288,3 @@ data "azurerm_user_assigned_identity" "uaid" { name = local.uai_name resource_group_name = local.uai_resource_group } -