You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow users to override the Terraform version to use (#3069)
## Changes
Previously, the CLI would use the Terraform binary at
`DATABRICKS_TF_EXEC_PATH` only if the `DATABRICKS_TF_VERSION`
environment variable was set and matched the _built-in default version_.
It was built such that we could ship all binaries with the VS Code
extension to avoid re-downloading (see #1294).
This change expands the scope of these variables and makes them
composable. Now, you can:
1. Configure `DATABRICKS_TF_VERSION` to override the Terraform version
to use
2. Configure `DATABRICKS_TF_EXEC_PATH` to configure the path to an
existing Terraform binary
If 1 is used alone, the CLI will download the specified version. If 2 is
used alone, the CLI will execute the specified binary to confirm that it
matches the _built-in default version_. If both are used, the CLI will
execute the specified binary to confirm that it matches the specified
version.
## Why
To allow users to use newer version of the Terraform CLI.
## Tests
* Unit tests pass
* Integration tests with the latest Terraform version (#3040)
Copy file name to clipboardExpand all lines: NEXT_CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,5 +15,6 @@
15
15
* When building Python artifacts as part of "bundle deploy" we no longer delete `dist`, `build`, `*egg-info` and `__pycache__` directories. ([#2982](https://github.com/databricks/cli/pull/2982))
16
16
* Fix variable resolution for lookup variables with other references ([#3054](https://github.com/databricks/cli/pull/3054))
17
17
* Added preset `presets.artifacts_dynamic_version` that automatically enables `dynamic_version: true` on all "whl" artifacts.
18
+
* Allow users to override the Terraform version to use by setting the `DATABRICKS_TF_VERSION` environment variable ([#3069](https://github.com/databricks/cli/pull/3069))
0 commit comments