https://www.kotechnologies.co.uk
- 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)
Clone repository to your host machine
$ git clone https://github.com/KOTechnologiesLtd/terraform-provider-cloudcraftEnter 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 buildInstall 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 installPlease see the examples directory for an example on how to use each.
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 buildInstall 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 installRun 'make' without a target, this will run the required targets to create the binary and the documentation.