Sensu Go resource provider for Terraform
This provider is still in early stages and has not seen a lot of production use. Backwards compatibility is not guaranteed at this time.
provider "sensu" {
api_url = "http://127.0.0.1:8080"
username = "admin"
password = "password"
namespace = "default"
}
resource "sensu_check" "check_1" {
name = "check_1"
command = "/bin/foo"
interval = 600
subscriptions = [
"foo",
"bar",
]
}
Downloading and installing a pre-compiled terraform-provider-sensu
release
is the recommended method of installation since it requires no additional tools
or libraries to be installed on your workstation.
-
Visit the releases page and download the latest release for your target architecture.
-
Unzip the downloaded file and copy the
terraform-provider-sensu
binary to a designated directory as described in Terraform's plugin installation instructions.
Note: Terraform requires Go 1.9 or later to successfully compile.
- Follow these instructions to setup a Golang development environment.
- Run:
$ go get -v -u github.com/jtopjian/terraform-provider-sensu
$ cd $GOPATH/src/github.com/jtopjian/terraform-provider-sensu
$ make build
You should now have a terraform-provider-sensu
binary located at
$GOPATH/bin/terraform-provider-sensu
. Copy this binary to a designated
directory as described in Terraform's plugin installation instructions
This project is using govendor
for the time being. In the future,
it'll probably move to the official Go module support.
Full documentation can be found in the docs
directory.