ci: e2e test for Terraform provider examples (#2745)

This commit is contained in:
Adrian Stobbe 2024-01-04 10:00:21 +01:00 committed by GitHub
parent 15cc7b919b
commit 8730e72319
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 340 additions and 38 deletions

View file

@ -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.
Use the all-in-one Target (Recommended):
The [`devbuild` target](./build-develop-deploy.md), will create a `terraform` directory
with the provider binary and some utility files in the dedicated local Terraform registry directory.
```bash
bazel run //:devbuild'
```
> [!IMPORTANT] when making changes on the provider without a commit, subsequent applies will fail due to the changed binary hash. To solve this, in your Terraform directory run:
>
> ```bash
> rm .terraform.lock.hcl
> terraform init
> ```
Only build:
```bash
bazel build //terraform-provider-constellation:tf_provider