Install
$ go get -u github.com/softlayer/terraform-provider-softlayer
Create or edit this file to specify the location of the terraform softlayer provider binary:
# ~/.terraformrc
providers {
softlayer = "/path/to/bin/terraform-provider-softlayer"
}
Documentation
Go to the documentation directory.
Development
Setup
- Ensure you have a $GOPATH environment variable set.
- Ensure you have $GOPATH/bin in your $PATH (e.g.
export PATH=$GOPATH/bin:PATH
).
- Install terraform-provider-softlayer as described above in the install section.
- Get the main dependencies:
$ go get github.com/softlayer/softlayer-go/...
$ go get github.com/hashicorp/terraform
The project will exist at $GOPATH/src/github.com/softlayer/terraform-provider-softlayer.
Build
make bin
Test
make
Updating dependencies
We are using govendor to manage dependencies just like Terraform. Please see its documentation for additional help.