Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Document Terraform 1.0 as minimum version #3952

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
- [Issues for new contributors](#issues-for-new-contributors)
- [Contribution Workflow](#contribution-workflow)
- [Contributing to Databricks Terraform Provider](#contributing-to-databricks-terraform-provider)
- [Installing for Terraform 0.12](#installing-for-terraform-012)
- [Installing from source](#installing-from-source)
- [Contributing documentation](#contributing-documentation)
- [Developing provider](#developing-provider)
Expand All @@ -20,13 +19,13 @@ We happily welcome contributions to the Databricks Terraform Provider. We use Gi

## Issues for new contributors

New contributors should look for the following tags when searching for a first contribution to the Databricks code base. We strongly recommend that new contributors tackle good first issue projects first; this helps the contributor become familiar with the contribution workflow, and for the core devs to become acquainted with the contributor.
New contributors should look for the following tags when searching for a first contribution to the Databricks code base. We strongly recommend that new contributors tackle "good first issue" projects first; this helps the contributor become familiar with the contribution workflow, and for the core devs to become acquainted with the contributor.

[good first issue](https://github.com/databricks/terraform-provider-databricks/labels/good%20first%20issue)

## Contribution Workflow

Code contributions—bug fixes, new development, test improvementall follow a GitHub-centered workflow. To participate in Databricks Terraform provider development, set up a GitHub account. Then:
Code contributions—bug fixes, new development, test improvementall follow a GitHub-centered workflow. To participate in Databricks Terraform provider development, set up a GitHub account. Then:

1. Fork the repo you plan to work on. Go to the project repo page and use the Fork button. This will create a copy of the repo, under your username. (For more details on how to fork a repository see [this guide](https://help.github.com/articles/fork-a-repo/).)

Expand Down Expand Up @@ -68,14 +67,6 @@ Additional git and GitHub resources:
[Git development workflow](https://docs.scipy.org/doc/numpy/dev/development_workflow.html)
[Resolving merge conflicts](https://help.github.com/articles/resolving-a-merge-conflict-using-the-command-line/)

## Installing for Terraform 0.12

If you use Terraform 0.12, please execute the following curl command in your shell:

```bash
curl https://raw.githubusercontent.com/databricks/terraform-provider-databricks/main/godownloader-databricks-provider.sh | bash -s -- -b $HOME/.terraform.d/plugins
```

## Installing from source

On MacOS X, you can install GoLang through `brew install go`, on Debian-based Linux, you can install it by `sudo apt-get install golang -y`.
Expand Down
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,8 @@ build: vendor
@echo "✓ Building source code with go build ..."
@go build -mod vendor -v -o terraform-provider-databricks

install12: build
@echo "✓ Installing provider for Terraform 0.12 into ~/.terraform.d/plugins ..."
@test -d $(HOME)/.terraform.d/plugins && rm $(HOME)/.terraform.d/plugins/terraform-provider-databricks* || mkdir -p $(HOME)/.terraform.d/plugins
@cp terraform-provider-databricks $(HOME)/.terraform.d/plugins

install: build
@echo "✓ Installing provider for Terraform 0.13+ into ~/.terraform.d/plugins ..."
@echo "✓ Installing provider for Terraform 1.0+ into ~/.terraform.d/plugins ..."
@mkdir -p '$(HOME)/.terraform.d/plugins/registry.terraform.io/databricks/databricks/$(shell ./terraform-provider-databricks version)/$(shell go version | awk '{print $$4}' | sed 's#/#_#')'
@cp terraform-provider-databricks '$(HOME)/.terraform.d/plugins/registry.terraform.io/databricks/databricks/$(shell ./terraform-provider-databricks version)/$(shell go version | awk '{print $$4}' | sed 's#/#_#')/terraform-provider-databricks'
@echo "✓ Use the following configuration to enable the version you've built"
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@

[![build](https://github.com/databricks/terraform-provider-databricks/workflows/build/badge.svg?branch=master)](https://github.com/databricks/terraform-provider-databricks/actions?query=workflow%3Abuild+branch%3Amaster) [![codecov](https://codecov.io/gh/databricks/terraform-provider-databricks/branch/main/graph/badge.svg)](https://codecov.io/gh/databricks/terraform-provider-databricks) ![lines](https://img.shields.io/tokei/lines/github/databricks/terraform-provider-databricks) [![downloads](https://img.shields.io/github/downloads/databricks/terraform-provider-databricks/total.svg)](https://hanadigital.github.io/grev/?user=databricks&repo=terraform-provider-databricks)

If you use Terraform 0.13 or newer, please refer to instructions specified at [registry page](https://registry.terraform.io/providers/databricks/databricks/latest). If you use older versions of Terraform or want to build it from sources, please refer to [contributing guidelines](CONTRIBUTING.md) page.
Databricks Terraform provider works with Terraform 1.0, or newer. To use it please refer to instructions specified at [registry page](https://registry.terraform.io/providers/databricks/databricks/latest):

```hcl
terraform {
Expand All @@ -110,6 +110,8 @@ terraform {
}
```

If you want to build it from sources, please refer to [contributing guidelines](CONTRIBUTING.md).

Then create a small sample file, named `main.tf` with approximately following contents. Replace `<your PAT token>` with newly created [PAT Token](https://docs.databricks.com/dev-tools/api/latest/authentication.html).

```terraform
Expand Down Expand Up @@ -180,6 +182,6 @@ After you replace `databrickslabs/databricks` with `databricks/databricks` in th

If you didn't check-in [`.terraform.lock.hcl`](https://www.terraform.io/language/files/dependency-lock#lock-file-location) to the source code version control, you may you may see `Failed to install provider` error. Please follow the simple steps described in the [troubleshooting guide](docs/guides/troubleshooting.md).

```text
Warning: Exporter is experimental and provided as is. It has an evolving interface, which may change or be removed in future versions of the provider.
```
## Use of Terraform exporter

The exporter functionality is experimental and provided as is. It has an evolving interface, which may change or be removed in future versions of the provider.
Loading