Skip to content

articulate/terraform-provider-ohdear

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

75d21ed · Dec 16, 2024
Dec 16, 2024
Jul 21, 2023
Sep 28, 2021
May 14, 2024
Nov 14, 2024
Aug 3, 2021
Sep 29, 2021
Oct 25, 2024
Dec 12, 2024
Dec 4, 2024
Dec 4, 2024
Jul 23, 2021
Oct 23, 2023
Dec 4, 2024
Dec 16, 2024
Dec 4, 2024
Dec 15, 2022
Oct 25, 2024
Aug 3, 2021

Repository files navigation

Terraform Provider OhDear

A Terraform Provider for Oh Dear.

Usage

The provider requires an api_token (or OHDEAR_TOKEN environment variable) and an optional team_id (OHDEAR_TEAM_ID environment variable).

terraform {
  required_providers {
    ohdear = {
      source = "articulate/ohdear"
      version = "2.2.4"
    }
  }
}

provider "ohdear" {
  api_token = "my-api-token"
  team_id   = 1234 # optional
}

To add a site to Oh Dear, create a ohdear_site resource.

resource "ohdear_site" "test" {
  url = "https://site.iwanttomonitor.com"
}

By default, all checks are enabled. You can customize this using the checks block. Any checks not defined in the block are disabled.

resource "ohdear_site" "test" {
  url = "https://site.iwanttomonitor.com"

  checks {
    uptime = true
  }
}

Development Requirements

Contributing

Commit messages must be signed and follow the Conventional Commits format.

Publishing

Releases are automatically created by release-please on PR merge. This will scan commit messages for new releases based on commit message and create a release PR. To finish the release, merge the PR, which will kick off GoReleaser.