terraform-provider-intercloud

command module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MPL-2.0 Imports: 2 Imported by: 0

README

Terraform Provider for InterCloud

Maintainers

This provider plugin is maintained by the InterCloud team at InterCloud

Requirements

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

Using the provider from releases binaries

Go to releases download page

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

Unzip and move the binary in :

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

⚠ Terraform 0.13 use source to make the path to the binary


Using the provider from source

Terraform 0.12
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.13
  • Coming soon

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

Some terraform 0.12 projects are available at ./examples/terraform0.12

Examples with terraform 0.13 are coming soon.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package version The version package provides a location to set the release versions for all packages to consume, without creating import cycles.
Package version The version package provides a location to set the release versions for all packages to consume, without creating import cycles.

Jump to

Keyboard shortcuts

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