A Terraform provider to manage Leaseweb resources.
Terraform 0.12.0 or later is needed to use this plugin.
Go 1.18 or later is needed to build the plugin.
This setup uses docker so you do not need go (or any of the build tools) on your workstation.
- You need
docker
anddocker compose
. - Git clone this repository and
cd
into it. - Run
docker compose build
- Run
docker compose up -d
To build the plugin (in docker):
docker compose exec --env GOOS=$GOOS --env GOARCH=$GOARCH backend go build -o terraform-provider-leaseweb
Move the plugin into the ~/.terraform.d/plugins/terraform.local/local/leaseweb/$VERSION/$GOOS_$GOARCH/
directory.
It can then be used the following way in your config:
terraform {
required_providers {
leaseweb = {
source = "terraform.local/local/leaseweb"
version = "0.1.2"
}
}
}