# Terraform

Manage your Better Stack resources automatically with [Terraform](https://developer.hashicorp.com/terraform). Using Terraform allows you to **define your monitoring and logging configurations as code**, making it easy to version, reuse, and automate your setup.

## Uptime & On-call

The Better Stack Uptime provider for Terraform allows you to manage your [Uptime](https://betterstack.com/docs/uptime/start/) resources, including monitors, heartbeats, integrations, on-call configuration, and status pages.

For detailed information on available resources and their configurations, please see the [Uptime provider documentation](https://registry.terraform.io/providers/BetterStackHQ/better-uptime/latest/docs).

The provider is built on top of the [Uptime API](https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/) and is [open-source](https://github.com/BetterStackHQ/terraform-provider-better-uptime).

## Logs and Metrics

The Better Stack Telemetry provider for Terraform allows you to manage your [Telemetry](https://betterstack.com/docs/logs/start/) resources, including telemetry sources, metrics, dashboards, and alerts.

For more information, please see the [Telemetry provider documentation](https://registry.terraform.io/providers/BetterStackHQ/logtail/latest/docs).

The provider is built on top of the [Telemetry API](https://betterstack.com/docs/logs/api/getting-started/) and is [open-source](https://github.com/BetterStackHQ/terraform-provider-logtail/).
