GithubHelp home page GithubHelp logo

davidji99 / terraform-provider-rollbar Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 4.0 7.56 MB

Terraform provider for Rollbar

Home Page: https://registry.terraform.io/providers/davidji99/rollbar/latest/docs

License: Apache License 2.0

Makefile 2.90% Go 95.37% Shell 1.73%
terraform-provider-rollbar rollbar

terraform-provider-rollbar's Introduction

Test Status

Terraform Provider Rollbar

This provider is used to configure certain resources supported by Rollbar API.

For provider bugs/questions, please open an issue on this repository.

Documentation

Documentation about resources and data sources can be found here.

Requirements

  • Terraform v0.12+. (No support for terraform v0.11)
  • Go v1.16 (to build the provider plugin)

Usage

For Terraform v0.12+ compatibility, the configuration should specify version 1.0.0 or higher:

provider "rollbar" {
  version = ">= 1.0.0"
}
  • This requires the provider binary installed somewhere on the host machine.

For Terraform v0.13+ compatibility, the following configuration should be used:

terraform {
  required_providers {
    rollbar = {
      source = "davidji99/rollbar"
      version = "1.0.0"
    }
  }
}

Releases

Provider binaries can be found here.

Development

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

If you wish to bump the provider version, you can do so in the file version/version.go.

Clone the Provider

This repository supports Go modules so you can clone this repository anywhere you wish and does not have to be in $GOPATH.

Build the Provider

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-rollbar
...

Using the Provider

To use the dev provider with local Terraform, copy the freshly built plugin into Terraform's local plugins directory:

cp $GOPATH/bin/terraform-provider-rollbar ~/.terraform.d/plugins/

Set the Rollbar provider without a version constraint:

provider "rollbar" {}

Then, initialize Terraform:

terraform init

Testing

Please see the TESTING guide for detailed instructions on running tests.

Updating or adding dependencies

This project uses Go Modules for dependency management.

Dependencies can be added or updated as follows:

$ GO111MODULE=on go get github.com/some/module@release-tag
$ GO111MODULE=on go mod tidy
$ GO111MODULE=on go mod vendor

This example will fetch a module at the release tag and record it in your project's go.mod and go.sum files. It's a good idea to tidy up afterward and then copy the dependencies into vendor/ directory.

If a module does not have release tags, then module@master can be used instead.

Removing dependencies

Remove all usage from your codebase and run:

$ GO111MODULE=on go mod tidy
$ GO111MODULE=on go mod vendor

terraform-provider-rollbar's People

Contributors

aceysmith avatar davidji99 avatar dependabot[bot] avatar giaco9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

terraform-provider-rollbar's Issues

Allow space characters in token and team names

There's nothing I could see in the API docs for project [EDIT: I mean access token] or team (they just say string) but based on my experience they can have a space in their name - we have existing tokens/teams containing spaces in our rollbar account.

At the moment in the provider is validating against a regexp which doesn't allow them:

^[a-zA-Z][0-9A-Za-z,.\-_]{1,31}$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.