terraform-provider-leaseweb

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

Terraform Leaseweb Provider

A Terraform provider to manage Leaseweb resources.

Requirements

Terraform 0.12.0 or later is needed to use this plugin.

Go 1.20 or later is needed to build the plugin.

Setup for development

This setup uses docker so you do not need go (or any of the build tools) on your workstation.

  1. You need docker and docker compose.
  2. Git clone this repository and cd into it.
  3. Run docker compose build
  4. Run docker compose up -d

Building the plugin

To build the plugin (in docker):

docker compose exec --env GOOS=$GOOS --env GOARCH=$GOARCH backend go build -o terraform-provider-leaseweb

Using the plugin locally

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.3.3"
    }
  }
}

Building the plugin using a local checkout of the Leaseweb Golang SDK

If you need to do a modification in the SDK and want to test it within the usage of the plugin, add the following at the end of the go.mod file to point to your local SDK checkout

replace github.com/LeaseWeb/leaseweb-go-sdk => /home/.../leaseweb-go-sdk

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL