This tool is deprecated. We recommend using Terraform import blocks instead.
A CLI tool that generates Terraform configuration from Rootly’s API. This tool allows you to import existing Rootly infrastructure into Terraform configuration files.

Installation

Homebrew

brew tap rootlyhq/homebrew-tap
brew install terraformer-rootly

Direct Download

Download the appropriate binary for your platform from the releases page. Available for:
  • macOS (Apple Silicon and Intel)
  • Linux

Usage

  1. Prepare your Terraform configuration Create a versions.tf file with the Rootly provider:
    terraform {
      required_providers {
        rootly = {
          source = "rootlyhq/rootly"
          version = "~> 1.0"
        }
      }
    }
    
  2. Set your API token
    export ROOTLY_API_TOKEN="your-api-token"
    
  3. Import resources
    terraformer-rootly import rootly --resources=*
    
  4. Upgrade the state file After importing, upgrade the .tfstate files:
    terraform state replace-provider -auto-approve -- -/rootly rootlyhq/rootly
    

Resources