databricks-cli/bundle/deploy/terraform
Ilia Babanov d12f88e24d
Fix summary command when internal terraform config doesn't exist (#1242)
Check if `bundle.tf.json` doesn't exist and create it before executing
`terraform init` (inside `terraform.Load`)

Fixes a problem when during `terraform.Load` it fails with: 
```
Error: Failed to load plugin schemas

Error while loading schemas for plugin components: Failed to obtain provider
schema: Could not load the schema for provider
registry.terraform.io/databricks/databricks: failed to instantiate provider
"registry.terraform.io/databricks/databricks" to obtain schema: unavailable
provider "registry.terraform.io/databricks/databricks"..
```
2024-03-01 08:25:12 +00:00
..
tfdyn Use `dyn.Value` as input to generating Terraform JSON (#1218) 2024-02-16 20:54:38 +00:00
apply.go Tune output of bundle deploy command (#1047) 2023-12-21 08:00:37 +00:00
convert.go Use `dyn.Value` as input to generating Terraform JSON (#1218) 2024-02-16 20:54:38 +00:00
convert_test.go Use `dyn.Value` as input to generating Terraform JSON (#1218) 2024-02-16 20:54:38 +00:00
destroy.go Use custom prompter for bundle template inputs (#663) 2023-08-15 14:50:20 +00:00
dir.go Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
filer.go Correctly overwrite local state if remote state is newer (#1008) 2023-11-24 11:15:46 +00:00
import.go Added `bundle deployment bind` and `unbind` command (#1131) 2024-02-14 18:04:45 +00:00
init.go Pass `USERPROFILE` environment variable to Terraform (#1001) 2023-11-22 09:16:28 +00:00
init_test.go Pass `USERPROFILE` environment variable to Terraform (#1001) 2023-11-22 09:16:28 +00:00
interpolate.go Use dynamic configuration model in bundles (#1098) 2024-02-16 19:41:58 +00:00
interpolate_test.go Use dynamic configuration model in bundles (#1098) 2024-02-16 19:41:58 +00:00
load.go Fix metadata computation for empty bundle (#939) 2023-11-02 11:00:30 +00:00
load_test.go Fix metadata computation for empty bundle (#939) 2023-11-02 11:00:30 +00:00
pkg.go Fix summary command when internal terraform config doesn't exist (#1242) 2024-03-01 08:25:12 +00:00
plan.go Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
state_pull.go Correctly overwrite local state if remote state is newer (#1008) 2023-11-24 11:15:46 +00:00
state_pull_test.go Use mockery to generate mocks compatible with testify/mock (#1190) 2024-02-08 15:18:53 +00:00
state_push.go Tune output of bundle deploy command (#1047) 2023-12-21 08:00:37 +00:00
state_push_test.go Use mockery to generate mocks compatible with testify/mock (#1190) 2024-02-08 15:18:53 +00:00
state_test.go Correctly overwrite local state if remote state is newer (#1008) 2023-11-24 11:15:46 +00:00
unbind.go Added `bundle deployment bind` and `unbind` command (#1131) 2024-02-14 18:04:45 +00:00
util.go Do not truncate local state file when pulling remote changes (#382) 2023-05-16 17:02:33 +02:00
util_test.go Correctly overwrite local state if remote state is newer (#1008) 2023-11-24 11:15:46 +00:00
write.go Fix summary command when internal terraform config doesn't exist (#1242) 2024-03-01 08:25:12 +00:00