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!
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"
}
}
}
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.
See Terraform Registry docs.
PREREQUISITE: go1.16+.
git clone https://github.com/altinity/terraform-provider-betteruptime && \
cd terraform-provider-betteruptime
make help
All code, unless specified otherwise, is licensed under the Apache-2.0 license.
Copyright (c) 2021 Altinity, Inc.