Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

BetterStackHQ/deprecated-terraform-provider-betteruptime

Repository files navigation

terraform-provider-betteruptime build documentation

Terraform (0.13+) provider for Better Uptime.

terraform-provider-betteruptime was brought to you by Altinity.Cloud - a ClickHouse-as-a-Service provider.
We're hiring!

Installation

terraform {
  required_version = ">= 0.13"
  required_providers {
    betteruptime = {
      source = "altinity/betteruptime"
      # https://github.com/altinity/terraform-provider-betteruptime/blob/master/CHANGELOG.md
      version = ">= 0.1.0"
    }
  }
}

Example Usage

provider "betteruptime" {
  # `api_token` can be omitted if BETTERUPTIME_API_TOKEN env var is set.
  api_token = "XXXXXXXXXXXXXXXXXXXXXXXX"
}

resource "betteruptime_status_page" "this" {
  company_name = "Example, Inc"
  company_url  = "https://example.com"
  timezone     = "UTC"
  subdomain    = "example"
}

resource "betteruptime_monitor" "this" {
  url          = "https://example.com"
  monitor_type = "status"
}

resource "betteruptime_status_page_resource" "monitor" {
  status_page_id = betteruptime_status_page.this.id
  resource_id    = betteruptime_monitor.this.id
  resource_type  = "Monitor"
  public_name    = "example.com site"
}

See examples/ for more.

Documentation

See Terraform Registry docs.

Development

PREREQUISITE: go1.16+.

git clone https://github.com/altinity/terraform-provider-betteruptime && \
  cd terraform-provider-betteruptime

make help

Legal

All code, unless specified otherwise, is licensed under the Apache-2.0 license.
Copyright (c) 2021 Altinity, Inc.