Skip to content

intercloud/terraform-provider-intercloud

Repository files navigation

Terraform Provider for InterCloud

Maintainers

This provider plugin is maintained by the InterCloud team at InterCloud

Requirements

  • Terraform 0.13+
  • Go 1.14 (to build the provider plugin)

Using the provider

See the InterCloud Provider documentation to get started using the InterCloud provider

Upgrading the provider

The provider does not upgrade automatically, you need to run the following command to force the upgrade after a new release:

terraform init -upgrade

For more details on upgrade and version constraint, see the Official Terraform documentation


Building the provider

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

To compile the provider, run make build. This will build the provider and put the provider binary in the $GOPATH/bin directory.

$ make build
...
$ $GOPATH/bin/terraform-provider-intercloud
...

Examples

Terraform 0.13+ examples available at ./examples/terraform0.13

Terraform older versions (>=0.12 and <0.13)

Installation

Go to releases download page

Download the right archive from the assets depending on your OS and Arch

⚠️ Under MacOS Catalina, errors can appear. Please see this Github issue for more informations and solutions: macOS Catalina error

Unzip and move the binary in :

OS Location
Windows %APPDATA%\terraform.d\plugins
All other systems ~/.terraform.d/plugins

Using provider from source

make release-snapshot
## Move/Copy the right binary depending of your {OS}_{Arch} from ./dist to the root of your hcl files
## IE with darwin_amd64
mv ./dist/terraform-provider-intercloud_darwin_amd64/terraform-provider-intercloud_v1.1.0-SNAPSHOT-783c762 ~/my-tf-plan-ie/
cd ~/my-tf-plan-ie
terraform init
terraform plan
terraform apply

Windows OS User:

# Execute those commands only the first time
go install github.com/goreleaser/goreleaser
go mod tidy

# Then
goreleaser build --rm-dist --snapshot
# mv ./dist/terraform-provider-intercloud_windows_amd64/terraform-provider-intercloud_v1.1.0-SNAPSHOT-783c762.exe E:\my-tf-plan-ie\terraform-provider-intercloud_v1.1.0-SNAPSHOT-783c762.exe
Move-Item -Path ./dist/terraform-provider-intercloud_windows_amd64/terraform-provider-intercloud_v1.1.0-SNAPSHOT-783c762.exe -Destination E:\my-tf-plan-ie\terraform-provider-intercloud_v1.1.0-SNAPSHOT-783c762.exe
E:\my-tf-plan-ie
terraform init
terraform plan
terraform apply

The provider can also be moved to one of those directories:

OS Location
Windows %APPDATA%\terraform.d\plugins
All other systems ~/.terraform.d/plugins

Terraform 0.12 examples

Terraform 0.12+ (< 0.13) examples available at ./examples/terraform0.12

About

Terraform InterCloud provider

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages