terraform-provider-rollbar

command module
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2019 License: MIT Imports: 2 Imported by: 0

README

Terraform Provider

Requirements

  • Terraform 0.12.x
  • Go 1.13.x+ (to build the provider plugin)

Building The Provider

Clone repository outside your Go path (not to $GOPATH/src/github.com/babbel/terraform-provider-rollbar) or set GO111MODULE=on (cf. Go module documenation).

$ git clone git@github.com:babbel/terraform-provider-rollbar

Enter the directory and build the provider

$ make build-darwin

or

$ make build-linux

Using the provider

provider "rollbar" {
  api_key = "${var.api_key}"
}

resource "rollbar_user" "test" {
  team_id = 333290
  email   = "test@somewhere.com"
}

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.13.x+ is required).

To compile the provider, run make build. This will build the provider and put the provider binary in the $GOPATH/bin directory.

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

$ make test

We cannot have the acceptance tests until rollbar changes/improves their api. The reason is because creating an invitation doesn't yield an userid. A user id is created when a user accepts their invitation.

Github Releases

In order to push a release to Github the feature branch has to merged into master and then a tag needs to be created with the version name of the provider e.g. v0.0.1 and pushed.

git checkout master
git pull origin master
git tag v<semver> -m "release comment"
git push origin master --tags

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL