A Terraform Provider for Oh Dear.
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 = "3.0.4"
}
}
}
provider "ohdear" {
api_token = "my-api-token"
team_id = 1234 # optional
}To add a monitor to Oh Dear, create a ohdear_monitor resource.
resource "ohdear_monitor" "test" {
url = "https://monitor.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_monitor" "test" {
url = "https://monitor.iwanttomonitor.com"
checks {
uptime = true
}
}- Go (for development)
- golangci-lint
- GoReleaser
Commit messages must be signed and follow the Conventional Commits format.
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.