Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.79 KB

File metadata and controls

35 lines (25 loc) · 1.79 KB

Example usage

build tests documentation

These examples demonstrate how to provision and manage Better Stack Uptime resources such as monitors, heartbeats, status pages, on-call calendars and integrations with Terraform.

The files in this directory are a ready-to-run basic example - a status page with a monitor.

Detailed, per-resource examples live in resources/ and per-data-source examples in data-sources/ - these are embedded in the registry docs and exercised end-to-end in CI.

Usage

git clone https://github.com/BetterStackHQ/terraform-provider-better-uptime && \
  cd terraform-provider-better-uptime/examples

echo '# See variables.tf for more.
betteruptime_api_token = "XXXXXXXXXXXXXXXXXXXXXXXX"
' > terraform.tfvars

terraform init
terraform apply

# open the status page created above
open $(terraform output -raw betteruptime_status_page_url)

Documentation

See Better Stack Uptime API docs to obtain an API token and the complete list of parameter options. Or explore the Terraform Registry provider documentation.