Skip to content

shubhambjadhavar/terraform-provider-sensu

 
 

Repository files navigation

terraform-provider-sensu

Sensu Go resource provider for Terraform

This provider is maintained on a volunteer basis. Please excuse any delay in response.

Prerequisites

Terraform Configuration Example

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",
	]
}

Installation

Using a Pre-Built Binary

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.

  1. Visit the releases page and download the latest release for your target architecture.

  2. Unzip the downloaded file and copy the terraform-provider-sensu binary to a designated directory as described in Terraform's plugin installation instructions.

Building from Source

Note: Terraform requires Go 1.9 or later to successfully compile.

  1. Follow these instructions to setup a Golang development environment.
  2. 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

Development

  • This provider attempts to adere to the best practices of developing Terraform providers.
  • This project is using Go modules for dependencies.

Documentation

Full documentation can be found in the docs directory.

About

A Terraform provider for Sensu Go

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.5%
  • Makefile 0.5%