mpeltonen / terraform-provider-site24x7

Terraform provider for managing Site24x7 monitors.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-provider-site24x7

Build Status Go Report Card GoDoc

A terraform provider for managing Site24x7 monitors which currently supports the following resources:

Installation

Clone the repository and build the provider:

git clone git@github.com:Bonial-International-GmbH/terraform-provider-site24x7
cd terraform-provider-site24x7
make install

This will build the terraform-provider-site24x7 binary and install it into the $HOME/.terraform.d/plugins directory.

Development

You can run the tests via:

make test

For a full list of available make targets, just run make without arguments.

Usage example

Refer to the _examples/ directory for a fully documented usage example.

This is a quick example of the provider configuration:

// Authentication API doc: https://www.site24x7.com/help/api/#authentication
provider "site24x7" {
  // The client ID will be looked up in the SITE24X7_OAUTH2_CLIENT_ID
  // environment variable if the attribute is empty or omitted.
  oauth2_client_id = "${var.oauth2_client_id}"

  // The client secret will be looked up in the SITE24X7_OAUTH2_CLIENT_SECRET
  // environment variable if the attribute is empty or omitted.
  oauth2_client_secret = "${var.oauth2_client_secret}"

  // The refresh token will be looked up in the SITE24X7_OAUTH2_REFRESH_TOKEN
  // environment variable if the attribute is empty or omitted.
  oauth2_refresh_token = "${var.oauth2_refresh_token}"
}

About

Terraform provider for managing Site24x7 monitors.

License:MIT License


Languages

Language:Go 85.2%Language:HCL 11.5%Language:Shell 1.7%Language:Makefile 1.6%