Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 1.91 KB

File metadata and controls

70 lines (49 loc) · 1.91 KB

Terraform Provider for CloudCraft

Create By

https://www.kotechnologies.co.uk

CloudCraft

https://www.cloudcraft.co/

Requirements

  • Docker engine linux. If you have the docker engine then you won't need to install the individual requirements, instead use docker build .
  • Terraform 0.13.x or above
  • Go 1.18.4 (to build the provider plugin)
  • make (On ubuntu apt-get install make)

Building The Provider

Clone repository to your host machine

$ git clone https://github.com/KOTechnologiesLtd/terraform-provider-cloudcraft

Enter the provider directory and build the provider

$ cd terraform-provider-cloudcraft
$ docker build .
copy the built files out of the docker container.

or

$ cd terraform-provider-cloudcraft
$ make init
$ make build

Install the provider to the local terraform directories Change the OS_ARCH= variable in the makefile before installing. By default it's setup to a 64bit linux machine.

$ make install

Using the provider

Please see the examples directory for an example on how to use each.

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.18.4+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

Enter the provider directory and build the provider

$ cd terraform-provider-cloudcraft
$ make init
$ make build

Install the provider to the local terraform directories Change the OS_ARCH= variable in the makefile before installing. By default it's setup to a 64bit linux machine.

$ make install

Preparing for the a pull request or merge request.

Run 'make' without a target, this will run the required targets to create the binary and the documentation.