- Website: harness.io
The Terraform provider for Harness is a plugin that allows you to manage resources in Harness CD.
If you have any questions please open a new issue or join our slack channel.
Full, comprehensive documentation is available on the Terraform website:
https://registry.terraform.io/providers/harness/harness/latest/docs
- Clone the repo into your local directory. Run
git clone https://github.com/harness/terraform-provider-harness.git
- Run
go mod tidy
- Run
go build -o terraform-provider-harness
- Create a file called
local.sh
in the root directory of the repository and copy the following script to the bash file
#!/bin/sh
version=0.40.2 #specify in this format
source=registry.terraform.io/harness/harness
platform=darwin_amd64
mkdir -p ~/.terraform.d/plugins/$source/$version/$platform/
cp terraform-provider-harness ~/.terraform.d/plugins/$source/$version/$platform/terraform-provider-harness
- Run the Bash Script
./local.sh
- Update the .terraform.rc file
provider_installation {
dev_overrides {
"registry.terraform.io/harness/harness" = "{path}/terraform-provider-harness"
}
direct {}
}
- Create build -
go build
Note: Please make sure the terraform provider version matches the version in the script