Skip to content

sitehostnz/terraform-provider-sitehost

Repository files navigation

Terraform logo

Terraform Provider for SiteHost

Requirements

  • Terraform 0.10.x
  • Go 1.18 (to build the provider plugin)

Example Usage

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.

Locations - Product Codes - Images

Check our KB to see the complete list of locations, product codes and images.

Building The Provider (For developers)

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

Contributing

If you're interested in contributing to our project:

License

SiteHost Terraform project is distributed under MIT.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •