github.com/terramate-io/tf@v0.0.0-20230830114523-fce866b4dfcd/command/helper.go (about) 1 // Copyright (c) HashiCorp, Inc. 2 // SPDX-License-Identifier: MPL-2.0 3 4 package command 5 6 import ( 7 "github.com/terramate-io/tf/backend" 8 "github.com/terramate-io/tf/cloud" 9 ) 10 11 const failedToLoadSchemasMessage = ` 12 Warning: Failed to update data for external integrations 13 14 Terraform was unable to generate a description of the updated 15 state for use with external integrations in Terraform Cloud. 16 Any integrations configured for this workspace which depend on 17 information from the state may not work correctly when using the 18 result of this action. 19 20 This problem occurs when Terraform cannot read the schema for 21 one or more of the providers used in the state. The next successful 22 apply will correct the problem by re-generating the JSON description 23 of the state: 24 terraform apply 25 ` 26 27 func isCloudMode(b backend.Enhanced) bool { 28 _, ok := b.(*cloud.Cloud) 29 30 return ok 31 }