Sensu Go resource provider for Terraform
This provider is maintained on a volunteer basis. Please excuse any delay in response.
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.
$ 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
Full documentation can be found in the docs
directory.