Skip to content

Commit

Permalink
improve provider dev docs
Browse files Browse the repository at this point in the history
  • Loading branch information
elchead committed Dec 21, 2023
1 parent 859c596 commit 9614285
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions dev-docs/workflows/terraform-provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,25 @@ This document explains the basic ways of working with the [Constellation Terrafo

## Building the Terraform Provider

The Constellation Terraform provider can be built through Bazel, either via the [`devbuild` target](./build-develop-deploy.md) (recommended), which will create a `terraform` directory
with the provider binary and some utility files in the current working directory, or explicitly via this command:
The Constellation Terraform provider can be built through Bazel.

Recommended:

Use the [`devbuild` target](./build-develop-deploy.md) (recommended), which will create a `terraform` directory
with the provider binary and some utility files in the dedicated Terraform local registry directory.

```bash
bazel run //:devbuild'
```
IMPORTANT: when making changes on the provider without a commit, subsequent applies will apply due to changed binary hash. To solve this, in your Terraform directory run:
```bash
rm .terraform.lock.hcl
terraform init --upgrade
```
Only build:
```bash
bazel build //terraform-provider-constellation:tf_provider
Expand Down

0 comments on commit 9614285

Please sign in to comment.