Terraform GreenHost provider. forked from github.com/digitalocean/terraform-provider-digitalocean
Go to file
Arve Knudsen 82b0996791 Handle denial to unassign floating IP from droplet 2017-11-13 18:55:47 +01:00
.github Make CoC and support channels more visible 2017-11-01 23:04:47 +01:00
digitalocean Handle denial to unassign floating IP from droplet 2017-11-13 18:55:47 +01:00
examples/droplet Add Bangalore Data center and update to Ubuntu 16.04 (#14892) 2017-05-28 23:46:09 +03:00
scripts Fix Changelog Links Script for digitalocean provider 2017-06-26 09:49:27 -05:00
vendor vendor: github.com/digitalocean/godo/...@v1.1.1 2017-09-29 18:39:39 -06:00
website Use both TCP and UDP for DNS in firewall example 2017-10-01 19:13:33 +02:00
.gitignore Updating Makefile + Add gitignore 2017-06-06 16:26:44 -04:00
.travis.yml Updating Makefile + Add gitignore 2017-06-09 14:28:09 -04:00
CHANGELOG.md Update CHANGELOG.md 2017-09-25 11:09:39 +01:00
GNUmakefile Adding back the GNUmakefile test-compile step 2017-06-30 11:15:18 +03:00
LICENSE initial commit 2017-06-05 20:54:06 +00:00
README.md Add a link from the README to the DigitalOcean Provider documentation 2017-10-16 18:39:00 -06:00
main.go Initial transfer of provider code 2017-06-06 11:45:18 -04:00

README.md

Terraform Provider

Requirements

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

Building The Provider

Clone repository to: $GOPATH/src/github.com/terraform-providers/terraform-provider-$PROVIDER_NAME

$ mkdir -p $GOPATH/src/github.com/terraform-providers; cd $GOPATH/src/github.com/terraform-providers
$ git clone git@github.com:terraform-providers/terraform-provider-$PROVIDER_NAME

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/terraform-providers/terraform-provider-$PROVIDER_NAME
$ make build

Using the provider

See the DigitalOcean Provider documentation to get started using the DigitalOcean provider.

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.8+ 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-$PROVIDER_NAME
...

In order to test the provider, you can simply run make test.

$ make test

In order to run the full suite of Acceptance tests, run make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

$ make testacc