Skip to main content

Overview

The Rootly Terraform provider lets you manage your entire Rootly configuration as code — severities, services, workflows, on-call schedules, escalation policies, form fields, alert routes, and more. With over 200 resources and 59 data sources, virtually every Rootly configuration object can be declared, versioned, and reviewed through your existing IaC pipeline.
  • Provider: rootlyhq/rootly on the Terraform Registry
  • Current version: 5.10.0
  • Minimum Terraform version: 1.0
  • Downloads: 1.1M+

Authentication

The provider authenticates using a Rootly API token. Generate one from Account > API Tokens in your Rootly dashboard. You can supply credentials via the provider block or environment variables. The environment variable approach is recommended to avoid committing secrets. Environment variables (recommended):
Provider block:

Installation

Declare the provider in your Terraform configuration and run terraform init:

Supported Resources

The provider covers 200+ resources across all major Rootly configuration areas.
Manage the building blocks of incident response and on-call operations.
Configure alert routing, sources, urgencies, and grouping rules.
Automate incident response with workflows triggered by incidents, alerts, pulses, and more.132 workflow task types are available as individual resources, covering integrations with Slack, Jira, PagerDuty, Datadog, GitHub, Notion, and many more. See the full resource list in the Terraform Registry.
Manage your service catalog, functionalities, and custom catalog entities.
Declare form fields, options, and placement rules for incident forms.
Manage retrospective templates and processes.
Manage status pages and their templates.
Manage communication templates, channels, and RBAC roles.

Data Sources

59 data sources let you reference existing Rootly resources in your configuration without managing them through Terraform.
Available data sources include: service, services, team, teams, severity, severities, environment, environments, functionality, functionalities, schedule, user, role, incident, workflow, alert_route, escalation_policy, on_call_role, and more.

Examples

Severities and services

On-call schedule with rotation

Workflow with Jira task

Custom form field

Importing Existing Resources

Resources already configured in Rootly can be imported into Terraform state without recreating them:
Resource IDs can be found in the Rootly API or in the URL when viewing a resource in the dashboard.
https://mintcdn.com/rootly/Elm2B9K1HrybvGWA/images/integrations/logos/pulumi.svg?fit=max&auto=format&n=Elm2B9K1HrybvGWA&q=85&s=ea1b2c5e0de58bc7e32b6b2c33231094

Pulumi

Manage Rootly resources with Pulumi using JavaScript or TypeScript.

API Reference

Explore the full Rootly REST API that powers the Terraform provider.