terraform {
required_providers {
sitehost = {
source = "sitehostnz/sitehost"
version = "~> 1.0"
}
}
}
provider "sitehost" {
client_id = "****"
api_key = "***"
api_endpoint = "https://api.sitehost.nz/1.1/"
}
resource "sitehost_server" "web" {
label = "webserver"
location = "AKLCITY"
product_code = "XENLIT"
image = "ubuntu-jammy-pvh.amd64"
}
You can read more about the steps to create a SiteHost API KEY in our knowledge base.
Check our KB to see the complete list of locations, product codes and images.
Clone repository to: $GOPATH/src/github.com/sitehostnz/ terraform-provider-sitehost
$ git clone [email protected]:sitehostnz/terraform-provider-sitehost
Enter the provider directory and build the provider
$ make install
If you're interested in contributing to our project:
- Start by reading our style guide.
- Explore our issues.
- Or send us feature PRs.
SiteHost Terraform project is distributed under MIT.