databricks-cli/bundle/deploy/terraform
shreyas-goenka fe32c46dc8
Make bundle deploy work if no resources are defined (#767)
## Changes

This PR sets "resource" to nil in the terraform representation if no
resources are defined in the bundle configuration. This solves two
problems:

1. Makes bundle deploy work without any resources specified. 
2. Previously if a `resources` block was removed after a deployment,
that would fail with an error. Now the resources would get destroyed as
expected.

Also removes `TerraformHasNoResources` which is no longer needed.

## Tests
New e2e tests.
2023-09-13 22:50:37 +00:00
..
apply.go Make bundle deploy work if no resources are defined (#767) 2023-09-13 22:50:37 +00:00
convert.go Make bundle deploy work if no resources are defined (#767) 2023-09-13 22:50:37 +00:00
convert_test.go Make bundle deploy work if no resources are defined (#767) 2023-09-13 22:50:37 +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
init.go Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
init_test.go Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
interpolate.go Support Model Serving Endpoints in bundles (#682) 2023-09-07 21:54:31 +00:00
load.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
load_test.go Renamed `environments` to `targets` in bundle configuration (#670) 2023-08-17 15:22:32 +00:00
pkg.go Add mutators to pull and push Terraform state (#288) 2023-03-30 12:01:09 +02:00
plan.go Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
state_pull.go Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
state_push.go Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +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 Do not truncate local state file when pulling remote changes (#382) 2023-05-16 17:02:33 +02:00
write.go Make bundle deploy work if no resources are defined (#767) 2023-09-13 22:50:37 +00:00